diff --git a/src/Util/Exception/BugFoundException.php b/src/Util/Exception/BugFoundException.php index a00b09321d..5b4ef08b96 100644 --- a/src/Util/Exception/BugFoundException.php +++ b/src/Util/Exception/BugFoundException.php @@ -44,6 +44,7 @@ class BugFoundException extends ServerException { parent::__construct($message, $code, $previous); $frame = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS, limit: 2)[1]; - Log::critical("{$log_message} in {$frame['file']}:{$frame['line']}"); + $file = mb_substr($frame['file'], \mb_strlen(INSTALLDIR) + 1); + Log::critical("{$log_message} in {$file}:{$frame['line']}"); } }