You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interpolation appears to be broken when the log is filtered out. Observed with structulog 22.2.0.
importloggingimportstructlogstructlog.configure(
processors=[
structlog.contextvars.merge_contextvars,
structlog.processors.add_log_level,
structlog.processors.StackInfoRenderer(),
structlog.dev.set_exc_info,
structlog.processors.TimeStamper(),
structlog.dev.ConsoleRenderer()
],
# Note this is set at the INFO levelwrapper_class=structlog.make_filtering_bound_logger(logging.INFO),
context_class=dict,
logger_factory=structlog.PrintLoggerFactory(),
cache_logger_on_first_use=False
)
log=structlog.get_logger()
# Note this is at the DEBUG level, there's no problem at the INFO level or higherlog.debug('hello %s', 'world')
Traceback:
Traceback (most recent call last):
File "/home/liquetm/dev/python-panels/bug.py", line 21, in <module>
log.debug('hello %s', 'world')
TypeError: _nop() takes 2 positional arguments but 3 were given
The text was updated successfully, but these errors were encountered:
Interpolation appears to be broken when the log is filtered out. Observed with structulog 22.2.0.
Traceback:
The text was updated successfully, but these errors were encountered: