Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default context value #86

Open
EkaterinaBurenina opened this issue Feb 15, 2023 · 0 comments · May be fixed by #91
Open

Default context value #86

EkaterinaBurenina opened this issue Feb 15, 2023 · 0 comments · May be fixed by #91
Assignees
Labels
bug Something isn't working

Comments

@EkaterinaBurenina
Copy link

Describe the bug

The default value and the normal context value are different types

Steps to reproduce the behavior

  1. setup_log_record()
  2. logger.info("some text")
  3. current_context[key] = value
  4. 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}
@EkaterinaBurenina EkaterinaBurenina added the bug Something isn't working label Feb 15, 2023
@afonasev afonasev self-assigned this Aug 13, 2023
@ADR-007 ADR-007 linked a pull request Jul 28, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants