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: if settings.DEBUG:
logger.exception("%s", err) logger.exception("%s", err)
snapshot_id = s.get("uuid", "") 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) logger.error(txt, snapshot_id)

View File

@ -90,7 +90,7 @@ class Build:
) )
if annotation: if annotation:
txt = "Warning: Snapshot %s exist as annotation !!" txt = "Warning: Snapshot %s already registered (annotation exists)"
logger.warning(txt, self.uuid) logger.warning(txt, self.uuid)
return return

View File

@ -88,7 +88,7 @@ def create_annotation(doc, user, commit=False):
) )
if annotation: if annotation:
txt = "Snapshot %s exist as annotation !!" txt = "Warning: Snapshot %s already registered (annotation exists)"
logger.warning(txt, doc["uuid"]) logger.warning(txt, doc["uuid"])
return annotation return annotation