diff options
author | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-24 19:52:49 +0200 |
---|---|---|
committer | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-25 11:26:15 +0200 |
commit | bd971bffb02c7b06aac9a479f7e5ed8f71de2bec (patch) | |
tree | ab24eb41471b950c57db65c3648e3c0c56a4a487 /src/timedata.cpp | |
parent | 90e49c1ececd6296c6ec6109cea525a208c0626e (diff) | |
download | bitcoin-bd971bffb02c7b06aac9a479f7e5ed8f71de2bec.tar.xz |
logging: Unconditionally log levels >= WARN
Messages with level `WARN` or higher should be logged even when
the category is not provided with `-debug=`, to make sure important
warnings are not lost.
Diffstat (limited to 'src/timedata.cpp')
-rw-r--r-- | src/timedata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedata.cpp b/src/timedata.cpp index 06659871e5..7faf22aba0 100644 --- a/src/timedata.cpp +++ b/src/timedata.cpp @@ -99,7 +99,7 @@ void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample) } } - if (LogAcceptCategory(BCLog::NET)) { + if (LogAcceptCategory(BCLog::NET, BCLog::Level::Debug)) { std::string log_message{"time data samples: "}; for (const int64_t n : vSorted) { log_message += strprintf("%+d ", n); |