diff options
Diffstat (limited to 'weather-logger-receiver')
-rwxr-xr-x | weather-logger-receiver | 8 |
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): |