I prefer a modicum of logging to simplify diagnostics, but not too much.
Default loglevel of ERROR was too restrictive as warnings won't get reported. I changed the default loglevel to include WARNING.
The Worker would not log when it started up, so I added an INFO for that, it includes logging the Queue config being used for easy identification of the worker.
The Worker now logs the configured functions as DEBUG.
The INFO loglevel would dump the entire payload and extra data for each job which would fill up the logs with more data, this was quite a jump from no logs at all for job processing. I split it up so that if loglevel is INFO it will emit an abridged version of the Job, and if loglevel is DEBUG it will emit the full version. (I'm not 100% happy about this, but needed to just log less of the same data for INFO by default)
I prefer a modicum of logging to simplify diagnostics, but not too much.
ERROR
was too restrictive as warnings won't get reported. I changed the default loglevel to includeWARNING
.INFO
for that, it includes logging theQueue
config being used for easy identification of the worker.DEBUG
.INFO
loglevel would dump the entire payload and extra data for each job which would fill up the logs with more data, this was quite a jump from no logs at all for job processing. I split it up so that if loglevel isINFO
it will emit an abridged version of the Job, and if loglevel isDEBUG
it will emit the full version. (I'm not 100% happy about this, but needed to just log less of the same data for INFO by default)