aboutsummaryrefslogtreecommitdiff
path: root/test/lint
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2023-08-22 13:23:38 +1000
committerAnthony Towns <aj@erisian.com.au>2023-12-20 15:59:48 +1000
commitf7ce5ac08c669ac763e275bb7c82dcfb2b1b6c33 (patch)
tree2bc830fec16764c0196930f3576081c7e3631590 /test/lint
parentfbd7642c8e5b70327e019382320f5ef0a651ecc5 (diff)
downloadbitcoin-f7ce5ac08c669ac763e275bb7c82dcfb2b1b6c33.tar.xz
logging: add LogError, LogWarning, LogInfo, LogDebug, LogTrace
These provide simple and clear ways to write the most common logging operations: LogInfo("msg"); LogDebug(BCLog::LogFlags::NET, "msg"); LogError("msg"); LogWarning("msg"); LogTrace(BCLog::LogFlags::NET, "msg"); For cases where the level cannot be hardcoded, LogPrintLevel(category, level, ...) remains available.
Diffstat (limited to 'test/lint')
-rwxr-xr-xtest/lint/lint-format-strings.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lint/lint-format-strings.py b/test/lint/lint-format-strings.py
index 5ac5840ecf..09d858e131 100755
--- a/test/lint/lint-format-strings.py
+++ b/test/lint/lint-format-strings.py
@@ -20,6 +20,11 @@ FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS = [
'fprintf,1',
'tfm::format,1', # Assuming tfm::::format(std::ostream&, ...
'LogConnectFailure,1',
+ 'LogError,0',
+ 'LogWarning,0',
+ 'LogInfo,0',
+ 'LogDebug,1',
+ 'LogTrace,1',
'LogPrint,1',
'LogPrintf,0',
'LogPrintfCategory,1',