improve logging text for certain messages
This commit is contained in:
parent
65bd88a2a2
commit
d4f50961bc
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue