logging: minor trace optimizations

This commit is contained in:
Megamouse 2023-06-12 03:47:20 +02:00
parent a90858193e
commit 16f869fe5a
9 changed files with 36 additions and 17 deletions

View file

@ -518,7 +518,8 @@ namespace np
}
local_ip_addr = client_addr.sin_addr.s_addr;
nph_log.trace("discover_ip_address: IP was determined to be %s", ip_to_string(local_ip_addr));
if (nph_log.trace)
nph_log.trace("discover_ip_address: IP was determined to be %s", ip_to_string(local_ip_addr));
close_socket();
return true;
}