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

Make update script less verbose by default #2033

Merged
1 commit merged into from
Aug 11, 2021
Merged

Make update script less verbose by default #2033

1 commit merged into from
Aug 11, 2021

Conversation

ghost
Copy link

@ghost ghost commented Aug 10, 2021

This introduces a --verbose flag to the experts which use update
functions. The default behaviour now is to not print any messages,
which makes the update function less noisy when used with cron.

Fixes #2016

In the long run we should probably move the update logic to the bot class itself.

@ghost ghost added this to the 3.0.1 milestone Aug 10, 2021
@codecov-commenter
Copy link

codecov-commenter commented Aug 10, 2021

Codecov Report

Merging #2033 (ead8ceb) into develop (c843349) will decrease coverage by 0.06%.
The diff coverage is 10.63%.

@@             Coverage Diff             @@
##           develop    #2033      +/-   ##
===========================================
- Coverage    76.07%   76.00%   -0.07%     
===========================================
  Files          425      425              
  Lines        22824    22845      +21     
  Branches      3023     3039      +16     
===========================================
  Hits         17364    17364              
- Misses        4754     4775      +21     
  Partials       706      706              
Impacted Files Coverage Δ
intelmq/bots/experts/asn_lookup/expert.py 35.83% <7.69%> (-1.89%) ⬇️
intelmq/bots/experts/maxmind_geoip/expert.py 20.80% <11.11%> (-0.69%) ⬇️
...telmq/bots/experts/recordedfuture_iprisk/expert.py 41.93% <11.11%> (-1.89%) ⬇️
intelmq/bots/experts/tor_nodes/expert.py 46.42% <11.11%> (-2.33%) ⬇️
intelmq/bots/experts/domain_suffix/expert.py 43.18% <14.28%> (-1.53%) ⬇️

@ghost ghost force-pushed the schacht/cron-output branch 2 times, most recently from 24017fb to 0759362 Compare August 11, 2021 07:29
@ghost ghost marked this pull request as ready for review August 11, 2021 07:42
@ghost ghost self-requested a review August 11, 2021 07:42
This introduces a --verbose flag to the experts which use update
functions. The default behaviour now is to *not* print any messages,
which makes the update function less noisy when used with cron.

Fixes #2016
@ghost ghost merged commit 8b2d9d8 into develop Aug 11, 2021
@ghost
Copy link

ghost commented Aug 11, 2021

Also cherry-picked for maintenance

@ghost ghost deleted the schacht/cron-output branch August 18, 2021 09:56
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bot database update scripts: Be quiet by default in cron scripts
1 participant