Supress graylog warning

This commit is contained in:
tokslaw7
2023-04-18 11:46:30 +00:00
parent de33aca665
commit 2dde3b2417
+2 -2
View File
@@ -49,7 +49,7 @@ void logfmt( TLogLevel level, const char * format, ... ) {
("pid", getpid())
("loglevel", FILELog::ToString(level).c_str());
} else {
FILE_LOG(logERROR) << "graylog is null!" ;
//FILE_LOG(logERROR) << "graylog is null!" ;
}
} else {
FILE_LOG(logERROR) << "buffer length is " << strlen(buffer) ;
@@ -77,7 +77,7 @@ void logfmt( TLogLevel level, const char * format, ... ) {
void GraylogStream(TLogLevel level, std::string raw) {
if (!graylog) {
std::cerr << "graylog is null!"; // We cannot use log here as it will go recursive
//std::cerr << "graylog is null!"; // We cannot use log here as it will go recursive
return; // Not initialized, yet?
}
if (!raw.empty()) {