Skip to content
Permalink
Browse files

used dirname(3)

  • Loading branch information...
dg committed Mar 26, 2019
1 parent 13344aa commit 5fd894f8ff1e79c6f103eb15a2b03b7f8c01c112
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tracy/Logger/FireLogger.php
@@ -64,7 +64,7 @@ public function log($message, $priority = self::DEBUG): bool
unset($trace[0]);
}
$file = str_replace(dirname(dirname(dirname($e->getFile()))), "\xE2\x80\xA6", $e->getFile());
$file = str_replace(dirname($e->getFile(), 3), "\xE2\x80\xA6", $e->getFile());
$item['template'] = ($e instanceof \ErrorException ? '' : Helpers::getClass($e) . ': ')
. $e->getMessage() . ($e->getCode() ? ' #' . $e->getCode() : '') . ' in ' . $file . ':' . $e->getLine();
$item['pathname'] = $e->getFile();

0 comments on commit 5fd894f

Please sign in to comment.
You can’t perform that action at this time.