Skip to content

Commit

Permalink
Updated fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis-chambers committed Jun 19, 2024
1 parent b7e6d0c commit 86c4ba8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/iotswarm/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
import logging
from iotswarm import __version__ as package_version
from iotswarm.queries import CosmosTable
from iotswarm.db import BaseDatabase,CosmosDB, Oracle, LoopingCsvDB, LoopingSQLite3
from iotswarm.db import BaseDatabase, CosmosDB, Oracle, LoopingCsvDB, LoopingSQLite3
from iotswarm.messaging.core import MessagingBaseClass, MockMessageConnection
from iotswarm.messaging.aws import IotCoreMQTTConnection
from typing import List
from datetime import datetime
import random
import enum

logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -260,7 +261,9 @@ async def run(self):
if payload:
self._instance_logger.debug("Requesting payload submission.")
self._send_payload(payload)
self._instance_logger.info(f"Message sent{f" to topic: {self.mqtt_topic}" if self.mqtt_topic else ""}")
self._instance_logger.info(
f'Message sent{f" to topic: {self.mqtt_topic}" if self.mqtt_topic else ""}'
)
else:
self._instance_logger.warning(f"No data found.")

Expand Down

0 comments on commit 86c4ba8

Please sign in to comment.