Skip to content

Commit

Permalink
Move stanalone mode info to init log
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-certat committed Aug 28, 2023
1 parent 5a9aaea commit e1490a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions intelmq/lib/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __init__(self, bot_id: str, start: bool = False, sighup_event=None,
version_info = sys.version.splitlines()[0].strip()
self.__log('info',
f'{self.__class__.__name__} initialized with id {bot_id} and intelmq {__version__}'
f' and python {version_info} as process {os.getpid()}.')
f' and python {version_info} as process {os.getpid()}. Standalone mode: {self._standalone}.')
self.__log('debug', f'Library path: {__file__!r}.')

# in standalone mode, drop privileges
Expand All @@ -183,7 +183,6 @@ def __init__(self, bot_id: str, start: bool = False, sighup_event=None,

try:
self.logger.info('Bot is starting.')
self.logger.debug("Standalone mode: %s.", self._standalone)

broker = self.source_pipeline_broker.title()
if broker != 'Amqp':
Expand Down

0 comments on commit e1490a9

Please sign in to comment.