Skip to content

Commit

Permalink
INFO Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiH committed Jun 28, 2024
1 parent c4f9b9f commit 5a1c09b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions TheengsGateway/ble_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def on_message(client, userdata, msg) -> None: # noqa: ANN001,ARG001
msg_json["gatewayid"],
)

logger.debug(
logger.info(
"[DIS] Discovered Trackers: %s", self.discovered_trackers
)

Expand Down Expand Up @@ -417,7 +417,7 @@ def check_tracker_timeout(self) -> None:
)
time_model.time = 0
self.discovered_trackers[address] = time_model
logger.debug("[TO] Discovered Trackers: %s", self.discovered_trackers)
logger.info("[TO] Discovered Trackers: %s", self.discovered_trackers)

async def ble_scan_loop(self) -> None:
"""Scan for BLE devices."""
Expand Down Expand Up @@ -639,7 +639,7 @@ def publish_json(
round(time()),
str(data_json["model_id"]),
)
logger.debug("[GP] Discovered Trackers: %s", self.discovered_trackers)
logger.info("[GP] Discovered Trackers: %s", self.discovered_trackers)

# Remove "track" if PUBLISH_ADVDATA is 0
if not self.configuration["publish_advdata"] and "track" in data_json:
Expand Down
2 changes: 1 addition & 1 deletion TheengsGateway/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def copy_pub_device(self, device: dict) -> dict:
"theengs/internal/trackersync",
)

logger.debug("Discovered Trackers: %s", self.discovered_trackers)
logger.info(" Discovered Trackers: %s", self.discovered_trackers)
pub_device_copy = device.copy()
# Remove "track" if PUBLISH_ADVDATA is 0
if not self.configuration["publish_advdata"] and "track" in pub_device_copy:
Expand Down

0 comments on commit 5a1c09b

Please sign in to comment.