improve logging text for certain messages

This commit is contained in:
pedro 2024-10-31 14:24:16 +01:00
parent 65bd88a2a2
commit d4f50961bc
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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

View file

@ -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