Skip to content

Commit

Permalink
Net: Reduce PortManager log noise.
Browse files Browse the repository at this point in the history
Shows up when running unit tests, etc.
  • Loading branch information
unknownbrackets committed Aug 28, 2020
1 parent a8059d5 commit 1371ef2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Core/Util/PortManager.cpp
Expand Up @@ -65,7 +65,7 @@ PortManager::~PortManager() {
}

void PortManager::Terminate() {
INFO_LOG(SCENET, "PortManager::Terminate()");
VERBOSE_LOG(SCENET, "PortManager::Terminate()");
if (urls) {
FreeUPNPUrls(urls);
free(urls);
Expand Down Expand Up @@ -96,7 +96,7 @@ bool PortManager::Initialize(const unsigned int timeout) {
unsigned char ttl = 2; // defaulting to 2
int error = 0;

INFO_LOG(SCENET, "PortManager::Initialize(%d)", timeout);
VERBOSE_LOG(SCENET, "PortManager::Initialize(%d)", timeout);
if (!g_Config.bEnableUPnP) {
ERROR_LOG(SCENET, "PortManager::Initialize - UPnP is Disabled on Networking Settings");
return false;
Expand Down Expand Up @@ -265,7 +265,7 @@ bool PortManager::Remove(const char* protocol, unsigned short port) {

bool PortManager::Restore() {
int r;
INFO_LOG(SCENET, "PortManager::Restore()");
VERBOSE_LOG(SCENET, "PortManager::Restore()");
if (urls == NULL || urls->controlURL == NULL || urls->controlURL[0] == '\0')
{
if (g_Config.bEnableUPnP) WARN_LOG(SCENET, "PortManager::Remove - the init was not done !");
Expand Down Expand Up @@ -318,7 +318,7 @@ bool PortManager::Clear() {
char rHost[64];
char duration[16];

INFO_LOG(SCENET, "PortManager::Clear()");
VERBOSE_LOG(SCENET, "PortManager::Clear()");
if (urls == NULL || urls->controlURL == NULL || urls->controlURL[0] == '\0')
{
if (g_Config.bEnableUPnP) WARN_LOG(SCENET, "PortManager::Clear - the init was not done !");
Expand Down

0 comments on commit 1371ef2

Please sign in to comment.