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:
|
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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue