diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-22 22:35:39 +0200 |
---|---|---|
committer | Vincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com> | 2020-04-25 17:38:14 +0200 |
commit | df545ce931b32d340e40831d0c3afbc6eabda29d (patch) | |
tree | 2556af811c18a60b1424180e876f651a87477921 /app/class | |
parent | f9173c85ca612ad6cd90417ad423a9c9f94a1e99 (diff) | |
download | wcms-df545ce931b32d340e40831d0c3afbc6eabda29d.tar.gz wcms-df545ce931b32d340e40831d0c3afbc6eabda29d.zip |
fix: Logger::exception didn't print the error position
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/Logger.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |