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

feat: ✨ Add debug groups #2332

Merged
merged 6 commits into from
Aug 20, 2024
Merged

feat: ✨ Add debug groups #2332

merged 6 commits into from
Aug 20, 2024

Conversation

zmerp
Copy link
Member

@zmerp zmerp commented Aug 16, 2024

Note: I thought about using the tracing crate, but for now there are no strong reasons to do it. Could be slightly cleaner to use attributes for function scopes. In any case the switch can be done at a later moment.

@zmerp
Copy link
Member Author

zmerp commented Aug 16, 2024

Should I also populate logs in this PR for some or all of the groups I implemented?

@ShootingKing-AM
Copy link
Member

Will this be available in "release" mode built server/client_core ?

@zmerp
Copy link
Member Author

zmerp commented Aug 16, 2024

The groups are only for the debug level which is gated out when compiling in release mode. If you intend to have logs also on release mode then you need to use info or up, and it should not be spammy

@zmerp zmerp force-pushed the grouped-logs branch 3 times, most recently from c1bf157 to 386fb36 Compare August 17, 2024 22:15
@zmerp zmerp merged commit b10f877 into master Aug 20, 2024
9 checks passed
@zmerp zmerp deleted the grouped-logs branch August 20, 2024 23:31
szneqz pushed a commit to szneqz/ALVR that referenced this pull request Aug 21, 2024
* feat: ✨ Add debug groups

* Expose logging to c apis

* Hide debug groups settings in release mode

* Use dbg macros instead of functions

* Rename "handshake" to "connection"

* Populate client_core, sever_core and connection debug groups
zmerp added a commit that referenced this pull request Sep 10, 2024
* feat: ✨ Add debug groups

* Expose logging to c apis

* Hide debug groups settings in release mode

* Use dbg macros instead of functions

* Rename "handshake" to "connection"

* Populate client_core, sever_core and connection debug groups
@zmerp zmerp mentioned this pull request Sep 10, 2024
zmerp added a commit that referenced this pull request Sep 10, 2024
* feat: ✨ Add debug groups

* Expose logging to c apis

* Hide debug groups settings in release mode

* Use dbg macros instead of functions

* Rename "handshake" to "connection"

* Populate client_core, sever_core and connection debug groups
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.

3 participants