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

fix: don't nest empty group keys, better follow slog.Hanlder interface #6

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

tjhop
Copy link
Owner

@tjhop tjhop commented Jan 14, 2025

Test snippets to show change:

Before:

level=info caller=slogtest.go:97 time=2025-01-14T17:36:28.125642737-05:00 msg=msg a=b .G.c=d e=f

After:

level=info caller=slogtest.go:97 time=2025-01-14T18:09:01.253906842-05:00 msg=msg a=b G.c=d e=f

Signed-off-by: TJ Hoplock [email protected]

@tjhop
Copy link
Owner Author

tjhop commented Jan 14, 2025

cc: @aknuds1

@tjhop tjhop force-pushed the fix/no-nesting-empty-group-keys branch 2 times, most recently from 9d555f7 to cb5b966 Compare January 15, 2025 05:21
Test snippets to show change:

Before:
```
level=info caller=slogtest.go:97 time=2025-01-14T17:36:28.125642737-05:00 msg=msg a=b .G.c=d e=f
```

After:
```
level=info caller=slogtest.go:97 time=2025-01-14T18:09:01.253906842-05:00 msg=msg a=b G.c=d e=f
```

Signed-off-by: TJ Hoplock <[email protected]>
@tjhop tjhop force-pushed the fix/no-nesting-empty-group-keys branch from cb5b966 to 11db26d Compare January 15, 2025 05:27
@tjhop
Copy link
Owner Author

tjhop commented Jan 15, 2025

yay, PR tests work \o/

@tjhop tjhop merged commit 6a4f9f3 into main Jan 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant