Detailed exception log

This commit is contained in:
the-djmaze 2022-05-21 23:28:04 +02:00
parent 471628618c
commit 3a1046f215

View file

@ -170,7 +170,7 @@ class ServiceActions
}
catch (\Throwable $oException)
{
\SnappyMail\Log::warning('SERVICE', $oException->getMessage());
\SnappyMail\Log::warning('SERVICE', "{$oException->getMessage()}\r\n{$oException->getTraceAsString()}");
if ($e = $oException->getPrevious()) {
\SnappyMail\Log::warning('SERVICE', "- {$e->getMessage()} @ {$e->getFile()}#{$e->getLine()}");
}