Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce logging details on INFO #162

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions myskoda/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ async def _connect_and_listen(self) -> None:
tls_context=_SSL_CONTEXT if self.enable_ssl else None,
keepalive=MQTT_KEEPALIVE,
) as client:
_LOGGER.info("Connected to MQTT with %s", client)
_LOGGER.info("Connected to MQTT")
_LOGGER.debug("using MQTT client %s", client)
for vin in self.vehicle_vins:
for topic in MQTT_OPERATION_TOPICS:
await client.subscribe(
Expand All @@ -169,7 +170,7 @@ async def _connect_and_listen(self) -> None:
await asyncio.sleep(MQTT_RECONNECT_DELAY)

def _on_message(self, msg: aiomqtt.Message) -> None:
"""Deserialize received MQTT message and emit Event to subscibed callbacks."""
"""Deserialize received MQTT message and emit Event to subscribed callbacks."""
# Extract the topic, user id and vin from the topic's name.
# Internally, the topic will always look like this:
# `/{user_id}/{vin}/path/to/topic`
Expand Down