feat(miniglog): remove log_severity_global
This commit is contained in:
parent
a8796478e6
commit
5105b5ea82
|
@ -86,6 +86,7 @@ struct glog_init {
|
|||
#else
|
||||
|
||||
#define MYNTEYE_MAX_LOG_LEVEL google::INFO
|
||||
// #define MYNTEYE_MAX_LOG_LEVEL 2
|
||||
|
||||
#include "mynteye/miniglog.h"
|
||||
|
||||
|
|
|
@ -157,9 +157,6 @@ class MYNTEYE_API LogSink {
|
|||
// Global set of log sinks. The actual object is defined in logging.cc.
|
||||
MYNTEYE_API extern std::set<LogSink *> log_sinks_global;
|
||||
|
||||
// Added by chachi - a runtime global maximum log level. Defined in logging.cc
|
||||
MYNTEYE_API extern int log_severity_global;
|
||||
|
||||
inline void InitGoogleLogging(char */*argv*/) {
|
||||
// Do nothing; this is ignored.
|
||||
}
|
||||
|
@ -315,8 +312,7 @@ class MYNTEYE_API LoggerVoidify {
|
|||
|
||||
// Log only if condition is met. Otherwise evaluates to void.
|
||||
#define LOG_IF(severity, condition) \
|
||||
(static_cast<int>(severity) > google::log_severity_global || !(condition)) ? \
|
||||
(void) 0 : LoggerVoidify() & \
|
||||
!(condition) ? (void) 0 : LoggerVoidify() & \
|
||||
MessageLogger((char *)__FILE__, __LINE__, "native", severity).stream()
|
||||
|
||||
// Log only if condition is NOT met. Otherwise evaluates to void.
|
||||
|
|
|
@ -36,6 +36,4 @@ namespace google {
|
|||
// that there is only one instance of this across the entire program.
|
||||
std::set<google::LogSink *> log_sinks_global;
|
||||
|
||||
int log_severity_global(INFO);
|
||||
|
||||
} // namespace google
|
||||
|
|
Loading…
Reference in New Issue
Block a user