diff options
author | Jon Atack <jon@atack.com> | 2022-05-25 18:26:54 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-06-08 14:02:54 +0200 |
commit | eb8aab759fb15824a5dd3004e689d0eb5b884a32 (patch) | |
tree | 3dc6ec7fdb4199a4d5115a016355834f23c50a83 /test/lint/lint-logs.py | |
parent | b9416c3847cd347238a9d75d949327f69e187d79 (diff) |
logging: add LogPrintfCategory to log unconditionally with category
prefixing the output with the passed category name.
- add documentation
- add a unit test
- update lint-logs.py
- update lint-format-strings.py
Diffstat (limited to 'test/lint/lint-logs.py')
-rwxr-xr-x | test/lint/lint-logs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lint/lint-logs.py b/test/lint/lint-logs.py index de53729b4e..aaf697467d 100755 --- a/test/lint/lint-logs.py +++ b/test/lint/lint-logs.py @@ -16,12 +16,12 @@ from subprocess import check_output def main(): - logs_list = check_output(["git", "grep", "--extended-regexp", r"(LogPrintLevel|LogPrintf?)\(", "--", "*.cpp"], universal_newlines=True, encoding="utf8").splitlines() + logs_list = check_output(["git", "grep", "--extended-regexp", r"(LogPrintLevel|LogPrintfCategory|LogPrintf?)\(", "--", "*.cpp"], universal_newlines=True, encoding="utf8").splitlines() unterminated_logs = [line for line in logs_list if not re.search(r'(\\n"|/\* Continued \*/)', line)] if unterminated_logs != []: - print("All calls to LogPrintf(), LogPrint(), LogPrintLevel(), and WalletLogPrintf() should be terminated with \"\\n\".") + print("All calls to LogPrintf(), LogPrintfCategory(), LogPrint(), LogPrintLevel(), and WalletLogPrintf() should be terminated with \"\\n\".") print("") for line in unterminated_logs: |