Janet Carson
09/11/2024, 10:35 PMChris White
PREFECT_LOGGING_LOGGERS_PREFECT_EXTRA_LEVEL="INFO"
long name, but that should do the trick -- let me know if that doesn't meet your needsJanet Carson
09/12/2024, 12:10 AM$ prefect config set PREFECT_LOGGING_LOGGERS_PREFECT_EXTRA_LEVEL="INFO"
Unknown setting name 'PREFECT_LOGGING_LOGGERS_PREFECT_EXTRA_LEVEL'.
Chris White
export PREFECT_LOGGING_LOGGERS_PREFECT_EXTRA_LEVEL="INFO"
Janet Carson
09/12/2024, 1:12 AMJanet Carson
09/12/2024, 4:59 PMJanet Carson
09/12/2024, 6:13 PMJanet Carson
09/12/2024, 6:28 PMChris White
Janet Carson
09/12/2024, 7:54 PMJanet Carson
09/13/2024, 12:00 AMChris White
Janet Carson
09/19/2024, 12:38 AMJanet Carson
09/19/2024, 12:45 AMprefect config set
Chris White
Janet Carson
09/19/2024, 5:35 PMJanet Carson
09/19/2024, 5:36 PMlogger = logging.getLogger(LOGGER_NAME)
logger.setLevel(logging.DEBUG)
logger.propagate = False
# Hack the prefect filters to not emit debug level messages
if logger.hasHandlers():
for handler in logger.handlers:
handler.addFilter(no_emit_jds_debug)
def no_emit_jds_debug(record: logging.LogRecord) -> bool:
"""A hook to make sure that prefect.extra does not emit jds messages
above the level that I want to store in Prefect
Returns
-------
bool:
True: continue processing this record, False: kill it
"""
name = record.name
level = record.levelno
if (name == LOGGER_NAME) and (level < <http://logging.INFO|logging.INFO>):
return False
return True
Janet Carson
09/20/2024, 4:13 PMJanet Carson
09/20/2024, 4:43 PMJanet Carson
09/20/2024, 5:59 PMprefect.task_runs
logger were at 95930 but the my task-statistics log messages were from 95955 to 10:01. I am logging them from a task.add_done_callback callback. Should that cause a 30 second delay? I could shift the log messages to the body of the task function instead.Janet Carson
11/12/2024, 1:29 AMChris White
Janet Carson
11/12/2024, 5:12 PMJanet Carson
11/12/2024, 5:12 PMChris White
Janet Carson
11/12/2024, 5:16 PMChris White
Janet Carson
11/12/2024, 5:19 PM