mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
log: Remove brittle and confusing LogPrintLevel
This commit is contained in:
@@ -47,7 +47,7 @@ static void ProcessPCP()
|
||||
// Local functor to handle result from PCP/NATPMP mapping.
|
||||
auto handle_mapping = [&](std::variant<MappingResult, MappingError> &res) -> void {
|
||||
if (MappingResult* mapping = std::get_if<MappingResult>(&res)) {
|
||||
LogPrintLevel(BCLog::NET, BCLog::Level::Info, "portmap: Added mapping %s\n", mapping->ToString());
|
||||
LogInfo("portmap: Added mapping %s", mapping->ToString());
|
||||
AddLocal(mapping->external, LOCAL_MAPPED);
|
||||
ret = true;
|
||||
actual_lifetime = std::min(actual_lifetime, mapping->lifetime);
|
||||
|
||||
Reference in New Issue
Block a user