From ccb6961e2c7127b3c0a100676b6bc54fd885f7b0 Mon Sep 17 00:00:00 2001 From: jackaraz Date: Tue, 14 Jun 2022 17:16:57 +0100 Subject: [PATCH 1/2] provide more information in debug mode --- tools/ReportGenerator/Services/colored_log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ReportGenerator/Services/colored_log.py b/tools/ReportGenerator/Services/colored_log.py index 87979571..a8fb305a 100644 --- a/tools/ReportGenerator/Services/colored_log.py +++ b/tools/ReportGenerator/Services/colored_log.py @@ -62,7 +62,8 @@ def format(self,record): elif ( record.levelno >= 20 ): #INFO color = '\x1b[0mMA5: ' elif ( record.levelno >= 10 ): #DEBUG - color = '\x1b[36mMA5-DEBUG: ' + color = f"\x1b[36mMA5-DEBUG ({record.module}.{record.funcName}() " \ + f"in {record.filename}::L{record.lineno}): " else: #ANYTHING ELSE color = '\x1b[0mMA5: ' record.msg = color + str( record.msg ) + '\x1b[0m' From 4c0cb9132af9a65ddc5fe1fa2da6acfc16c9cae6 Mon Sep 17 00:00:00 2001 From: jackaraz Date: Tue, 14 Jun 2022 17:21:31 +0100 Subject: [PATCH 2/2] update changelog-dev.md --- doc/releases/changelog-dev.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 622953a1..ecb7dc67 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -42,6 +42,9 @@ This now will be handled through `requirements.txt`. ([#68](https://github.com/MadAnalysis/madanalysis5/pull/68)) + * Debug mode message has been extended to include module, function and file names + with line number. ([#90](https://github.com/MadAnalysis/madanalysis5/pull/90)) + ## Bug fixes * Zero division error fixed in the simplified likelihoods workflow. ([#4](https://github.com/MadAnalysis/madanalysis5/pull/4))