fix(log): improve the error log message on hook failure (#3973)
This commit is contained in:
parent
a747cf16bd
commit
4f82c77e7a
|
@ -173,8 +173,8 @@ safe_execute(Fun, Args) ->
|
||||||
try execute(Fun, Args) of
|
try execute(Fun, Args) of
|
||||||
Result -> Result
|
Result -> Result
|
||||||
catch
|
catch
|
||||||
_:Reason:Stacktrace ->
|
Error:Reason:Stacktrace ->
|
||||||
?LOG(error, "Failed to execute ~0p: ~0p", [Fun, {Reason, Stacktrace}]),
|
?LOG(error, "Failed to execute ~0p: ~0p", [Fun, {Error, Reason, Stacktrace}]),
|
||||||
ok
|
ok
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue