mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-04 06:12:07 +01:00
init: log that additional logs may contain privacy-sensitive information
Log an info message when any `-debug` categories are enabled, noting they may contain privacy-sensitive information (e.g. transaction IDs) and should not be shared publicly. Co-authored-by: Vasil Dimov <vd@FreeBSD.org> Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
This commit is contained in:
@@ -98,6 +98,11 @@ util::Result<void> SetLoggingCategories(const ArgsManager& args)
|
||||
return util::Error{strprintf(_("Unsupported logging category %s=%s."), "-debugexclude", cat)};
|
||||
}
|
||||
}
|
||||
|
||||
if (LogInstance().GetCategoryMask() != BCLog::NONE) {
|
||||
LogInfo("Debug logging is enabled (-debug). Additional log output may contain privacy-sensitive information. Be cautious when sharing logs.");
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user