Supress graylog warning
This commit is contained in:
@@ -49,7 +49,7 @@ void logfmt( TLogLevel level, const char * format, ... ) {
|
|||||||
("pid", getpid())
|
("pid", getpid())
|
||||||
("loglevel", FILELog::ToString(level).c_str());
|
("loglevel", FILELog::ToString(level).c_str());
|
||||||
} else {
|
} else {
|
||||||
FILE_LOG(logERROR) << "graylog is null!" ;
|
//FILE_LOG(logERROR) << "graylog is null!" ;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
FILE_LOG(logERROR) << "buffer length is " << strlen(buffer) ;
|
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) {
|
void GraylogStream(TLogLevel level, std::string raw) {
|
||||||
if (!graylog) {
|
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?
|
return; // Not initialized, yet?
|
||||||
}
|
}
|
||||||
if (!raw.empty()) {
|
if (!raw.empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user