summaryrefslogtreecommitdiff
path: root/src/third_party/s2
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2014-08-04 19:40:54 -0400
committerBenety Goh <benety@mongodb.com>2014-08-07 22:13:48 -0400
commitfe950f19e616a86fdea70da66eda658d64489a5e (patch)
treec2c244e52e87cfee698e588e078b1ae0b812ce0e /src/third_party/s2
parentadc36ff6450b1ee493b9acd26d3e79bd4facf953 (diff)
downloadmongo-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-xsrc/third_party/s2/base/logging.h3
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: