Skip to main content

Logging

Cadence runs tasks and workers on threads and uses Python's built-in logging module to maintain thread safety.

Cadence defines cadence and cadence-subprocess loggers:

import logging

cadence_logger = logging.getLogger("cadence")
cadence_sub_logger = logging.getLogger("cadence-subprocess")

The cadence-subprocess logger is used to debug the pipeline. It prints light grey to not distract from the main cadence logger, which is used to print warnings and errors.

Disable Cadence Logger

You can turn off Cadence loggers by disabling them:

import logging

logging.getLogger("cadence").disabled = True
logging.getLogger("cadence-subprocess").disabled = True