context_logging
context_logging copied to clipboard
Default context value
Describe the bug
The default value and the normal context value are different types
Steps to reproduce the behavior
- setup_log_record()
- logger.info("some text")
- current_context[key] = value
- logger.info("some text")
Expected vs actual behavior
I expect
"message": "some text", "context": {}
"message": "some text", "context": {key: value}
actual behavior
"message": "some text", "context": ""
"message": "some text", "context": {key: value}