Skip to content

Commit

Permalink
Adapt logging
Browse files Browse the repository at this point in the history
  • Loading branch information
quaxalber committed Jan 20, 2025
1 parent 8da478a commit 5a43921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bluetooth_2_usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

def signal_handler(sig, frame):
sig_name = signal.Signals(sig).name
logger.info(f"Received signal: {sig_name}. Requesting graceful shutdown.")
logger.debug(f"Received signal: {sig_name}. Requesting graceful shutdown.")
shutdown_event.set()


Expand Down Expand Up @@ -78,7 +78,7 @@ async def main() -> None:

await shutdown_event.wait()

logger.info("Shutdown event triggered. Cancelling relay task...")
logger.debug("Shutdown event triggered. Cancelling relay task...")
relay_task.cancel()

await asyncio.gather(relay_task, return_exceptions=True)
Expand Down
2 changes: 1 addition & 1 deletion src/bluetooth_2_usb/relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def async_relay_devices(self) -> None:
)
finally:
self._task_group = None
_logger.info("RelayController: TaskGroup exited.")
_logger.debug("RelayController: TaskGroup exited.")

def add_device(self, device_path: str) -> None:
"""
Expand Down

0 comments on commit 5a43921

Please sign in to comment.