Skip to content

Commit

Permalink
Update ErrorLogger.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi authored Jun 21, 2020
1 parent e36b7a1 commit 25da666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ErrorLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function log($message, $priority = self::INFO)
throw new \RuntimeException("Directory '$this->directory' is not found or is not directory.");
}

$exceptionFile = $message instanceof \Exception ? $this->logException($message) : NULL;
$exceptionFile = $message instanceof \Throwable ? $this->logException($message) : NULL;
$line = $this->formatLogLine($message, $exceptionFile);
$file = $this->directory . '/' . strtolower($priority ?: self::INFO) . '.log';

Expand Down

0 comments on commit 25da666

Please sign in to comment.