Supress graylog warning
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user