summaryrefslogtreecommitdiff
path: root/weather-logger-receiver
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-05-10 19:45:10 +0200
committerpks <pks@pks.rocks>2021-05-10 19:45:10 +0200
commitdecc196fcf1b83c2a651b2974be065af4776ec7a (patch)
tree70dcdc9fc6323fbf5ab7d98a52cdd372c22210b8 /weather-logger-receiver
parent700cfbd8ca5b21203f6a3443106b959c63104261 (diff)
fix
Diffstat (limited to 'weather-logger-receiver')
-rwxr-xr-xweather-logger-receiver10
1 files changed, 5 insertions, 5 deletions
diff --git a/weather-logger-receiver b/weather-logger-receiver
index 5f7cd1b..b63dca7 100755
--- a/weather-logger-receiver
+++ b/weather-logger-receiver
@@ -84,7 +84,7 @@ def write_pid_file(pid_file_path, logger):
def load_config(config_file_path, logger):
with open(config_file_path, "r") as f:
config = yaml.safe_load(f.read())
- logger.info(f"Loaded configuration from '{config_file_path}'")
+ logger.info(f"Loaded configuration from \"{config_file_path}\"")
return config
@@ -106,19 +106,19 @@ if __name__ == "__main__":
# get known devices
active_location = config["active_location"]
known_devices = config["locations"][active_location]
- logger.info(f"Loaded known devices for location '{active_location}'")
+ logger.info(f"Loaded known devices for location \"{active_location}\"")
# write pid file
write_pid_file(config["pid_file_path"], logger)
- logger.info("Wrote PID file to '{config{'pid_file_path']}'")
+ logger.info("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("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("Set up serial connection to \"{config['device_path']}\"")
# handle shutdown
def shutdown(*args):