Add a debug mode to base worker and allow upper workers to use it
Refs https://gitlab.com/arkindex/requests/-/issues/489
Base worker should expose a CLI argument --debug
that triggers changes on the logging configuration, enabling more output (from logger.debug
calls)
The value should come from, by priority:
- CLI arg
--debug
: used by developers -
ARKINDEX_DEBUG
environment variable set totrue
-
debug
from worker configuration (bonus)