From 2f2d8c2b3d574c5f2d58492c90997a8c4fa84b60 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis <acinonyx@openwrt.gr> Date: Mon, 5 Aug 2024 20:03:08 +0300 Subject: [PATCH] Fix more format sequences while logging observations IDs Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr> --- satnogsclient/observer/observer.py | 4 ++-- satnogsclient/scheduler/tasks.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/satnogsclient/observer/observer.py b/satnogsclient/observer/observer.py index f591c68..4c193de 100644 --- a/satnogsclient/observer/observer.py +++ b/satnogsclient/observer/observer.py @@ -240,7 +240,7 @@ class Observer(object): OSError) as err: LOGGER.error('pre-observation script: %s', err) - LOGGER.info('Begin observation %d ...', self.observation_id) + LOGGER.info('Begin observation %s ...', self.observation_id) # if it is APT we want to save with a prefix until the observation # is complete, then rename. if self.mode == 'APT': @@ -361,7 +361,7 @@ class Observer(object): LOGGER.debug('Tracking stopped.') self.tracker_freq.trackstop() self.tracker_rot.trackstop() - LOGGER.info('Observation %d finished.', self.observation_id) + LOGGER.info('Observation %s finished.', self.observation_id) if settings.SATNOGS_POST_OBSERVATION_SCRIPT is not None: LOGGER.info('Executing post-observation script.') diff --git a/satnogsclient/scheduler/tasks.py b/satnogsclient/scheduler/tasks.py index cafbc95..8b5dd62 100644 --- a/satnogsclient/scheduler/tasks.py +++ b/satnogsclient/scheduler/tasks.py @@ -208,7 +208,7 @@ def get_jobs(): LOGGER.debug('Fetched jobs from network, received %d future observations.', len(latest_jobs)) for observation_id in dropped_job_ids: - LOGGER.info('Drop planned observation %d (reason: deleted in network).', observation_id) + LOGGER.info('Drop planned observation %s (reason: deleted in network).', observation_id) existing_jobs[observation_id].remove() for observation_id in new_job_ids: -- GitLab