Skip to content
Snippets Groups Projects
Commit 692947d9 authored by Eliott Sammier's avatar Eliott Sammier
Browse files

Minor logging enhancements

parent 2d8e8fbc
No related branches found
No related tags found
1 merge request!5Resolve "Parseur par type d'activité"
......@@ -102,10 +102,10 @@ class Activity:
self.comment_consigne = comment
case alpha, num:
log.warning(
f"No match for comment {alpha}[{num}] ('{comment.id}')"
f"{self.id}: No match for comment {alpha}[{num}] ('{comment.id}')"
)
case something:
log.warning(f"No match for comment '{something}'")
log.warning(f"{self.id}: No match for comment '{something}'")
def get_name(self) -> str:
return type(self).__name__
......@@ -228,7 +228,7 @@ class ExerciceQC(Exercice):
choice.comment = self.comments_sugg.pop(choice.comment.id)
except KeyError:
log.warning(
f"Choice '{choice.id}' requested comment '{choice.comment.id}', which was not found in HTML."
f"{self.id}: Choice '{choice.id}' requested comment '{choice.comment.id}', which was not found in HTML."
)
@override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment