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

Change log level of detailed tracing messages to TRACE instead of DEBUG #1409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VeaaC
Copy link

@VeaaC VeaaC commented Jun 26, 2023

One of the main things the SDK does is issue network requests. These are issued all the time, and outputting log messages for them is more akin to tracing the debug logging. The same is true for cancelling network requests: Rendering libraries will typically cancel requests if you pan the map.

Without this change debug logs are extremely spammy and hard to analyze.

What do you think?

Signed-off-by: Christian Vetter <christian.vetter@here.com>
@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

Merging #1409 (5e0ccc4) into master (7b0c381) will increase coverage by 0.02%.
The diff coverage is n/a.

❗ Current head 5e0ccc4 differs from pull request most recent head 59730bc. Consider uploading reports for the commit 59730bc to get more accurate results

@@            Coverage Diff             @@
##           master    #1409      +/-   ##
==========================================
+ Coverage   80.59%   80.60%   +0.02%     
==========================================
  Files         337      337              
  Lines       12780    12781       +1     
  Branches     1385     1386       +1     
==========================================
+ Hits        10299    10302       +3     
+ Misses       1914     1913       -1     
+ Partials      567      566       -1     

see 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@VeaaC
Copy link
Author

VeaaC commented Aug 8, 2023

Any feedback on this?

@uhertlein
Copy link
Collaborator

This looks like a reasonable change to me.

I assume it's intentional that only "send" and "cancel" are dropped to TRACE, but not "message completed"?

@VeaaC
Copy link
Author

VeaaC commented May 22, 2024

@uhertlein I guess that's because those message were the only ones spamming in my apps :)

Which messages would you suggest to also downgrade?

@uhertlein
Copy link
Collaborator

I didn't want to suggest to change more message to TRACE.

Keeping "Message completed" at DEBUG is good IMO, because it contains enough information to make "Send request" semi-redundant.

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.

None yet

2 participants