From df545ce931b32d340e40831d0c3afbc6eabda29d Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 22 Apr 2020 22:35:39 +0200 Subject: fix: Logger::exception didn't print the error position --- app/class/Logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/class') diff --git a/app/class/Logger.php b/app/class/Logger.php index 5d2695c..104e23a 100644 --- a/app/class/Logger.php +++ b/app/class/Logger.php @@ -95,7 +95,7 @@ class Logger public static function exception(Throwable $e, bool $withtrace = false) { if (self::$verbosity > 0) { - $msg = $e->getMessage(); + $msg = "{$e->getMessage()} in {$e->getFile()}({$e->getLine()})"; if ($withtrace) { // TODO: Maybe print a more beautiful stack trace. $msg .= PHP_EOL . $e->getTraceAsString(); -- cgit v1.2.3