Skip to content

Commit a1e4ac2

Browse files
authored
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.
1 parent 9a1362a commit a1e4ac2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/httpserver.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ static void libevent_log_cb(int severity, const char *msg)
371371
#endif
372372
if (severity >= EVENT_LOG_WARN) // Log warn messages and higher without debug category
373373
LogPrintf("libevent: %s\n", msg);
374-
else
375-
LogPrint("libevent", "libevent: %s\n", msg);
374+
// The below code causes log spam on Travis and the output of these logs has never been of any use so far
375+
//else
376+
// LogPrint("libevent", "libevent: %s\n", msg);
376377
}
377378

378379
bool InitHTTPServer()

0 commit comments

Comments
 (0)