mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Add exception trace to log for #1648
This commit is contained in:
parent
2f90d95c4c
commit
3fb700f163
|
@ -73,9 +73,9 @@ abstract class Crypt
|
||||||
if (\is_string($result)) {
|
if (\is_string($result)) {
|
||||||
return static::jsonDecode($result);
|
return static::jsonDecode($result);
|
||||||
}
|
}
|
||||||
throw new \Exception('invalid $data or $key');
|
throw new \RuntimeException('invalid $data or $key');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
Log::error('Crypt', "{$fn}(): {$e->getMessage()}");
|
Log::error('Crypt', "{$fn}(): {$e->getMessage()}\n{$e->getTraceAsString()}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue