Skip to content

Commit

Permalink
Use correct logger (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter authored Jan 16, 2025
1 parent 999d501 commit 5ab3ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aggrec/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def connect_mongodb(self):

params["host"] = params["host"].replace("mongomock://", "mongodb://")
params["mongo_client_class"] = mongomock.MongoClient
logger.info("Connecting to MongoDB %s", params)
self.logger.info("Connecting to MongoDB %s", params)
mongoengine.connect(**params, tz_aware=True)
logger.info("MongoDB connected")
self.logger.info("MongoDB connected")

def get_mqtt_client(self) -> aiomqtt.Client:
client = aiomqtt.Client(
Expand Down

0 comments on commit 5ab3ca9

Please sign in to comment.