-
The docs mention that to enable debug logging, we need to declare the KANI_DEBUG as an environment variable. I did this, but it did not work. My code is not using the Kani terminal, so the code that does logging.basicConfig is never called. I wonder if this code |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good point - the docs only mention this in the context of python.org has a pretty good overview of the logging module, but depending on your use case, you might be interested in overriding |
Beta Was this translation helpful? Give feedback.
Good point - the docs only mention this in the context of
chat_in_terminal
since we didn't want kani's loggers to clobber developers' logging setups in a prod environment (sincelogging.basicConfig
is fairly nuclear). In a larger application (i.e. not using thechat_in_terminal
dev utils), you'd want to initialize the logging yourself.python.org has a pretty good overview of the logging module, but depending on your use case, you might be interested in overriding
Kani.add_to_history
to log messages instead.