diff options
author | Benety Goh <benety@mongodb.com> | 2014-08-04 19:40:54 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-08-07 22:13:48 -0400 |
commit | fe950f19e616a86fdea70da66eda658d64489a5e (patch) | |
tree | c2c244e52e87cfee698e588e078b1ae0b812ce0e /src/third_party/s2 | |
parent | adc36ff6450b1ee493b9acd26d3e79bd4facf953 (diff) | |
download | mongo-fe950f19e616a86fdea70da66eda658d64489a5e.tar.gz |
SERVER-14467 log S2 debug messages as query log message at level 5
Diffstat (limited to 'src/third_party/s2')
-rwxr-xr-x | src/third_party/s2/base/logging.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/third_party/s2/base/logging.h b/src/third_party/s2/base/logging.h index 460a8797912..b237090b3f1 100755 --- a/src/third_party/s2/base/logging.h +++ b/src/third_party/s2/base/logging.h @@ -54,8 +54,9 @@ #define FATAL LogMessageFatal(__FILE__, __LINE__).stream() #define DFATAL LogMessageFatal(__FILE__, __LINE__).stream() +// VLOG messages will be logged at debug level 5 with the S2 log component. #define S2LOG(x) x -#define VLOG(x) if (x>0) {} else S2LOG(INFO) +#define VLOG(x) MONGO_LOG_COMPONENT(::mongo::logger::LogSeverity::Debug(5), ::mongo::logger::LogComponent::kS2) class LogMessageFatal { public: |