Skip to content

Commit

Permalink
used dirname(3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 6, 2019
1 parent 13344aa commit 5fd894f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tracy/Logger/FireLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5fd894f

Please sign in to comment.