Clean up Utils error handling functions (internal)

This commit is contained in:
Dylan K. Taylor
2018-12-16 17:50:00 +00:00
parent b80868040e
commit 34a899e28b
5 changed files with 36 additions and 21 deletions

View File

@ -210,7 +210,7 @@ class MainLogger extends \AttachableThreadedLogger{
$errfile = Utils::cleanPath($errfile);
$message = get_class($e) . ": \"$errstr\" ($errno) in \"$errfile\" at line $errline";
$stack = Utils::getTrace(0, $trace);
$stack = Utils::printableTrace($trace);
$this->synchronized(function() use ($type, $message, $stack) : void{
$this->log($type, $message);