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

safety: logging level tweaks #2420

Merged
merged 2 commits into from
Mar 18, 2023
Merged

safety: logging level tweaks #2420

merged 2 commits into from
Mar 18, 2023

Conversation

dgw
Copy link
Member

@dgw dgw commented Mar 13, 2023

Description

  • failure to delete old malwaredomains file is upgraded to a warning: fixing the problem requires manual intervention
  • domain list update is now all debug, all the time, except if there is an error (which generates a warning so the bot owner can see if it's repeatedly failed)
  • cache cleanup being skipped is also debug now; it didn't make sense for "cleanup already running" to be louder than "starting cleanup"

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

Notes

I'm looking specifically at info() logging calls in light of #2419 and very well might run through all the places where the most common messages I see in logs of the bots I run/admin just to double-check that we're using the INFO level sensibly.

* failure to delete old malwaredomains file is upgraded to a warning:
  fixing the problem requires manual intervention
* domain list update is now all debug, all the time, except if there is
  an error (which generates a warning so the bot owner can see if it's
  repeatedly failed)
* cache cleanup being skipped is also debug now; it didn't make sense
  for "cleanup already running" to be louder than "starting cleanup"
@dgw dgw added the Tweak label Mar 13, 2023
@dgw dgw added this to the 8.0.0 milestone Mar 13, 2023
@dgw dgw requested a review from a team March 13, 2023 20:58
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

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

I approve most of these change, I have one small request that I think make sense, with an alternate solution if needed.

sopel/modules/safety.py Show resolved Hide resolved
@dgw dgw requested a review from Exirel March 13, 2023 22:48
@dgw dgw enabled auto-merge March 15, 2023 06:01
Previous status message in the download function has been demoted to
debug level, but it's still nice to confirm at startup that an update
attempt is being made.
@dgw dgw force-pushed the safety-logging-tweaks branch from 38eaa59 to 091aa90 Compare March 18, 2023 18:25
@dgw dgw merged commit 8b098bf into master Mar 18, 2023
@dgw dgw deleted the safety-logging-tweaks branch March 18, 2023 20:38
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