Skip to content

Commit

Permalink
Log when punch source is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lukipuki committed Dec 16, 2023
1 parent 1864e64 commit cc70e74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/yaroc/utils/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ def create_si_workers(
workers: list[SiWorker] = []
if source_config is not None:
if source_config.get("usb", {}).get("enable", False):
logging.info("Enabled USB punch source")
workers.append(source_factories.udev())
if source_config.get("fake", {}).get("enable", False):
logging.info("Enabled fake punch source")
workers.append(source_factories.fake())
if source_config.get("bt", {}).get("enable", False):
logging.info("Enabled Bluetooth punch source")
workers.append(source_factories.bt(source_config["bt"]["mac_addr"]))
return workers

Expand Down

0 comments on commit cc70e74

Please sign in to comment.