Disable logging of libevent debug messages (#2794)

This still keeps the "libevent" logging category in place, but it now
only logs >= EVENT_LOG_WARN severity.
This commit is contained in:
Alexander Block 2019-03-21 17:43:14 +01:00 committed by GitHub
parent 9a1362abdf
commit a1e4ac21fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,8 +371,9 @@ static void libevent_log_cb(int severity, const char *msg)
#endif
if (severity >= EVENT_LOG_WARN) // Log warn messages and higher without debug category
LogPrintf("libevent: %s\n", msg);
else
LogPrint("libevent", "libevent: %s\n", msg);
// The below code causes log spam on Travis and the output of these logs has never been of any use so far
//else
// LogPrint("libevent", "libevent: %s\n", msg);
}
bool InitHTTPServer()