Skip to content

Commit

Permalink
Use get_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 15, 2024
1 parent bc6f621 commit f7d3704
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yao/mech_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from typing import TYPE_CHECKING, Any

from sdsstools.logger import SDSSLogger
from sdsstools.logger import SDSSLogger, get_logger

from yao import config

Expand Down Expand Up @@ -248,7 +248,7 @@ def __init__(
self.reboot: bool = False
self.command_number: int = 0

self.log = log or SDSSLogger("yao.boss-spech-mech-client")
self.log = log or get_logger("yao.boss-spech-mech-client")
if log is None and log_path:
self.log.start_file_logger(log_path)

Expand All @@ -261,8 +261,8 @@ async def start(self):
"""Opens a connection with the given IP and port."""

self.log.info(
f"Opening connection with {self.spechMechAddress} "
f"on port {self.specMechPort}"
f"Opening connection with specMech on {self.spechMechAddress} "
f"at port {self.specMechPort}"
)

loop = asyncio.get_running_loop()
Expand Down

0 comments on commit f7d3704

Please sign in to comment.