Skip to content

Commit

Permalink
Merge pull request #404 from Progress1/main
Browse files Browse the repository at this point in the history
Remove redundant code
  • Loading branch information
Progress1 authored Nov 4, 2024
2 parents 83ddf0f + a466ca8 commit 193ea2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/collectors/collectors/email_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def collect(self, source):
Parameters:
source -- Source object.
"""
BaseCollector.update_last_attempt(source)
self.collector_source = f"{self.name} '{source.name}':"
news_items = []
email_server_type = source.parameter_values["EMAIL_SERVER_TYPE"]
email_server_hostname = source.parameter_values["EMAIL_SERVER_HOSTNAME"]
Expand Down
4 changes: 2 additions & 2 deletions src/collectors/managers/collectors_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def reportStatus():

def initialize():
"""Initialize the collectors."""
logger.info(f"{__name__}: Initializing collector...")
logger.info(f"Initializing collector...")

# inform core that this collector node is alive
status_report_thread = threading.Thread(target=reportStatus)
Expand All @@ -53,7 +53,7 @@ def initialize():
register_collector(ManualCollector())
register_collector(ScheduledTasksCollector())

logger.info(f"{__name__}: Collector initialized.")
logger.info(f"Collector initialized.")


def register_collector(collector):
Expand Down

0 comments on commit 193ea2f

Please sign in to comment.