From 3c7670a70327e164c119bad54b2bfd4970931fa1 Mon Sep 17 00:00:00 2001 From: caryoscelus Date: Sat, 10 Dec 2022 16:39:18 +0000 Subject: [PATCH] fix debug messages --- src/Content/ContentManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index d6086e19..350370d0 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -85,16 +85,16 @@ class ContentManager(object): new_ts = int(float(new_content.get('modified', 0))) old_ts = int(float(old_content.get('modified', 0))) if new_ts < old_ts: - self.log.debug('got older version of {content_inner_path} ({new_ts} < {old_ts}), ignoring') + self.log.debug(f'got older version of {content_inner_path} ({new_ts} < {old_ts}), ignoring') return [], [] elif new_ts == old_ts: - self.log.debug('got same timestamp version of {content_inner_path} ({new_ts}), ignoring') + self.log.debug(f'got same timestamp version of {content_inner_path} ({new_ts}), ignoring') return [], [] except Exception as err: self.log.warning(f'{content_path} load error: {Debug.formatException(err)}') return [], [] else: - self.log.debug("Content.json not exist: %s" % content_path) + self.log.debug(f'Content.json not exist: {content_path}') return [], [] # Content.json not exist try: