Skip to content

Commit d396543

Browse files
Sebastian WagnerWagner
authored andcommitted
bug: domain suffix expert: skipped update message
Only print skipped database update message if verbose mode is active fixes #2016
1 parent 78f19d5 commit d396543

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ CHANGELOG
1212
### Core
1313
- `intelmq.lib.bot.CollectorBot`: Fixed an issue with within the `new_report` function, which re-loads the harmonization file after a new incoming dataset, which leads to CPU drain and decreased performance (PR#2106 by Sebastian Waldbauer, fixes #2098).
1414

15+
### Bots
16+
#### Experts
17+
- `intelmq.bots.experts.domain_suffix.expert`: Only print skipped database update message if verbose mode is active (PR# by Sebastian Wagner, fixes #2016).
18+
1519
### Documentation
1620
- Add configuration upgrade steps for 3.0 to NEWS (PR#2101 by Sebastian Wagner).
1721

intelmq/bots/experts/domain_suffix/expert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ def update_database(cls, verbose=False):
9191
sys.exit("Database update failed. Your configuration of {0} is missing key {1}.".format(bot, e))
9292

9393
if not bots:
94-
print("Database update skipped. No bots of type {0} present in runtime.conf.".format(__name__))
94+
if verbose:
95+
print("Database update skipped. No bots of type {0} present in runtime.conf.".format(__name__))
9596
sys.exit(0)
9697

9798
# we only need to import now. If there are no asn_lookup bots, this dependency does not need to be installed

0 commit comments

Comments
 (0)