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

@ -88,7 +88,7 @@ class LoginPacket extends DataPacket{
$logger = MainLogger::getLogger();
$logger->debug(get_class($e) . " was thrown while decoding connection request in login (protocol version " . ($this->protocol ?? "unknown") . "): " . $e->getMessage());
foreach(Utils::getTrace(0, $e->getTrace()) as $line){
foreach(Utils::printableTrace($e->getTrace()) as $line){
$logger->debug($line);
}
}