Closed amns13 closed 1 year ago
When any celery task is finished, Celery prints a log saying that the task succeeded in . It also adds extra information containing the parameters received for the task.
logger.info(fmt, context, extra={'data': context})
As the input parameters can contain sensitive information, we don't want to print this info. Is there anyway that we can hide this in the logs?
Okay. I inherited from JsonFormatter and overrode __init__ to add data to _skip_fields. Still, please let me know if there's a better way. TIA
JsonFormatter
__init__
data
_skip_fields
When any celery task is finished, Celery prints a log saying that the task succeeded in
As the input parameters can contain sensitive information, we don't want to print this info. Is there anyway that we can hide this in the logs?