From d4f50961bc6e5137fc513628fd59c7ebd48d3d0b Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 31 Oct 2024 14:24:16 +0100 Subject: [PATCH] improve logging text for certain messages --- evidence/management/commands/up_snapshots.py | 2 +- evidence/parse.py | 2 +- utils/device.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evidence/management/commands/up_snapshots.py b/evidence/management/commands/up_snapshots.py index 2c58e08..69ac134 100644 --- a/evidence/management/commands/up_snapshots.py +++ b/evidence/management/commands/up_snapshots.py @@ -61,5 +61,5 @@ class Command(BaseCommand): if settings.DEBUG: logger.exception("%s", err) snapshot_id = s.get("uuid", "") - txt = "It is not possible to parse snapshot: %s." + txt = "It is not possible to parse snapshot: %s" logger.error(txt, snapshot_id) diff --git a/evidence/parse.py b/evidence/parse.py index 53d52a9..3ec476b 100644 --- a/evidence/parse.py +++ b/evidence/parse.py @@ -90,7 +90,7 @@ class Build: ) if annotation: - txt = "Warning: Snapshot %s exist as annotation !!" + txt = "Warning: Snapshot %s already registered (annotation exists)" logger.warning(txt, self.uuid) return diff --git a/utils/device.py b/utils/device.py index ec8e807..beaa4b8 100644 --- a/utils/device.py +++ b/utils/device.py @@ -88,7 +88,7 @@ def create_annotation(doc, user, commit=False): ) if annotation: - txt = "Snapshot %s exist as annotation !!" + txt = "Warning: Snapshot %s already registered (annotation exists)" logger.warning(txt, doc["uuid"]) return annotation