summaryrefslogtreecommitdiff
path: root/weather-logger-receiver
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-05-10 19:47:18 +0200
committerpks <pks@pks.rocks>2021-05-10 19:47:18 +0200
commited1104a915626734cda6569a2ee86814f13fa4ba (patch)
treed7ee815f7d16b302bbedf28bdb7e5fb374af6783 /weather-logger-receiver
parent2c762ae42b22dcfa00c56bac9d65af5b159add85 (diff)
fix
Diffstat (limited to 'weather-logger-receiver')
-rwxr-xr-xweather-logger-receiver8
1 files changed, 4 insertions, 4 deletions
diff --git a/weather-logger-receiver b/weather-logger-receiver
index 021a7ea..35ca34b 100755
--- a/weather-logger-receiver
+++ b/weather-logger-receiver
@@ -60,7 +60,7 @@ def loop(known_devices, serial_connection, db_connection, logger):
try:
if data.device.id_string not in known_devices:
- logger.info(f"Unknown device with id '{device_id}' and type '{device_type}', ignoring")
+ logger.info(f"Unknown device with id \"{device_id}\" and type \"{device_type}\", ignoring")
continue
except:
logger.info("Device ID not found, likely not a 'SensorEvent', ignoring")
@@ -110,15 +110,15 @@ if __name__ == "__main__":
# write pid file
write_pid_file(config["pid_file_path"], logger)
- logger.info("Wrote PID file to {config{'pid_file_path']}")
+ logger.info(f"Wrote PID file to \"{config{'pid_file_path']}\"")
# database setup
db_connection = setup_database(config["database_path"], logger)
- logger.info("Set up database \"{config['database_path']}\"")
+ logger.info(f"Set up database \"{config['database_path']}\"")
# serial connection setup
serial_connection = setup_serial(config["device_path"])
- logger.info("Set up serial connection to \"{config['device_path']}\"")
+ logger.info(f"Set up serial connection to \"{config['device_path']}\"")
# handle shutdown
def shutdown(*args):