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

Switch default log level for mocknet to INFO #11353

Merged
merged 10 commits into from
May 22, 2024

Conversation

tayfunelmas
Copy link
Contributor

Before this change, the default log level is DEBUG, which generate just too many logs.
With this change the new log levels are as follows:

  • WARN: actix_web,mio,tokio_util,actix_server,actix_http
  • DEBUG: client, chain
  • INFO: everything else

We use the log_config.json file to set the level as described here.

Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.24%. Comparing base (349e453) to head (b952ae1).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #11353   +/-   ##
=======================================
  Coverage   71.24%   71.24%           
=======================================
  Files         784      784           
  Lines      157833   157833           
  Branches   157833   157833           
=======================================
+ Hits       112452   112453    +1     
+ Misses      40535    40534    -1     
  Partials     4846     4846           
Flag Coverage Δ
backward-compatibility 0.24% <ø> (ø)
db-migration 0.24% <ø> (ø)
genesis-check 1.38% <ø> (ø)
integration-tests 37.21% <ø> (-0.01%) ⬇️
linux 68.72% <ø> (-0.01%) ⬇️
linux-nightly 70.68% <ø> (-0.01%) ⬇️
macos 52.33% <ø> (-0.01%) ⬇️
pytests 1.60% <ø> (ø)
sanity-checks 1.39% <ø> (ø)
unittests 65.63% <ø> (ø)
upgradability 0.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tayfunelmas tayfunelmas disabled auto-merge May 21, 2024 21:52
@tayfunelmas tayfunelmas added this pull request to the merge queue May 22, 2024
Merged via the queue into near:master with commit ce8520f May 22, 2024
29 checks passed
@tayfunelmas tayfunelmas deleted the forknet-logs branch May 22, 2024 20:43
marcelo-gonzalez pushed a commit to marcelo-gonzalez/nearcore that referenced this pull request May 23, 2024
Before this change, the default log level is DEBUG, which generate just
too many logs.
With this change the new log levels are as follows:
- WARN: actix_web,mio,tokio_util,actix_server,actix_http
- DEBUG: client, chain
- INFO: everything else

We use the `log_config.json` file to set the level as described
[here](https://near.github.io/nearcore/practices/workflows/otel_traces.html#configuration).
@tayfunelmas tayfunelmas restored the forknet-logs branch July 22, 2024 10:37
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.

4 participants