improve logging for parse errors
This commit is contained in:
parent
3f86b6141e
commit
64b0879984
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ const tryParse = function (Env, str) {
|
|||
try {
|
||||
return JSON.parse(str);
|
||||
} catch (err) {
|
||||
Env.Log.error('HK_PARSE_ERROR', err);
|
||||
Env.Log.error('HK_PARSE_ERROR', {
|
||||
message: err && err.name,
|
||||
input: str,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue