chainlink icon indicating copy to clipboard operation
chainlink copied to clipboard

tag job errors in error logs as errors

Open bensacc opened this issue 2 years ago • 1 comments

Beginning with Chainlink version smartcontract/chainlink:1.3.1-nonroot the log formatting seems to have changed such that entries that are actually errors are tagged as 'debug' (along with many other entries that are non-critical errors or purely informational)

for example:

2022-06-10T12:06:07.795Z        **debug**   1.4.1@73e70a9   Pipeline task completed {"jobID": 0, "jobName": "", "taskName": "ds1", "taskType": "bridge", "attempt": 0, "runInfo": {"IsRetryable":true,"IsPending":false}, "resultValue": null, **"resultError"**: "got error from XXX?source=coingecko: (status code 500) ", "resultErrorVerbose": "got error from XXX?source=coingecko: (status code 500).....}

The vast majority of log entries are tagged as 'debug' as above, this one is actually an error. Would it be possible to tag errors with something along the lines of:

2022-06-10T12:06:07.795Z       **error**    1.4.1@73e70a9   Pipeline task completed {....}

This would make identifying errors in the logs significantly easier. Thanks for reviewing and considering!

bensacc avatar Jun 10 '22 13:06 bensacc