Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nats: Don't enable debug and trace logging by default#825

Merged
rhafer merged 1 commit into
opencloud-eu:mainfrom
rhafer:nats-disable-tracelog
May 13, 2025
Merged

nats: Don't enable debug and trace logging by default#825
rhafer merged 1 commit into
opencloud-eu:mainfrom
rhafer:nats-disable-tracelog

Conversation

@rhafer

@rhafer rhafer commented May 12, 2025

Copy link
Copy Markdown
Member

Only enable trace and/or debug logging when the outer logger has the log level set accordingly. Even when the though the messages where not really logged the nats service wasted quite some cycles especially in the trace log related code path.

Related issue: #716

For details see: #716 (comment)

@rhafer rhafer requested a review from aduffeck May 12, 2025 11:18
@rhafer rhafer self-assigned this May 12, 2025
Only enable trace and/or debug logging when the outer logger has the
log level set accordingly. Even when the though the messages where not
really logged the nats service wasted quite some cycles especially in
the trace log related code path.

Related issue: opencloud-eu#716
@rhafer rhafer force-pushed the nats-disable-tracelog branch from c6de466 to 4d52257 Compare May 12, 2025 12:48

@aduffeck aduffeck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my local tests it doesn't seem to make a difference performance- or load-wise but it still doesn't make sense to have those enabled. lgtm

@rhafer rhafer merged commit d7c87a0 into opencloud-eu:main May 13, 2025
@openclouders openclouders mentioned this pull request May 13, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants