Skip to content

Commit 986ff84

Browse files
committed
Disable logging to file on GC messages, if macro is set
1 parent ba68ba4 commit 986ff84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/libnetwrk/net/core/service/service_comp_connection.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ namespace libnetwrk {
115115
count_after = connections.size();
116116
}
117117

118+
LIBNETWRK_DISABLE_FILE_LOG();
118119
LIBNETWRK_VERBOSE(m_context.name, "GC total: {} ({})", count_after, 0 - (int64_t)(count_before - count_after));
120+
LIBNETWRK_ENABLE_FILE_LOG();
121+
119122
timer.expires_after(std::chrono::seconds(m_context.settings.gc_freq_sec));
120123
}
121124
}

0 commit comments

Comments
 (0)