summaryrefslogtreecommitdiff
path: root/src/mongo/util/assert_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/assert_util.h')
-rw-r--r--src/mongo/util/assert_util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/util/assert_util.h b/src/mongo/util/assert_util.h
index dad19c08d42..525631e2e48 100644
--- a/src/mongo/util/assert_util.h
+++ b/src/mongo/util/assert_util.h
@@ -311,10 +311,10 @@ namespace mongo {
try { \
expression; \
} catch ( const std::exception &e ) { \
- problem() << "caught exception (" << e.what() << ") in destructor (" << __FUNCTION__ \
- << ")" << std::endl; \
+ ::mongo::log() << "caught exception (" << e.what() << ") in destructor (" << __FUNCTION__ \
+ << ")" << std::endl; \
} catch ( ... ) { \
- problem() << "caught unknown exception in destructor (" << __FUNCTION__ << ")" \
- << std::endl; \
+ ::mongo::log() << "caught unknown exception in destructor (" << __FUNCTION__ << ")" \
+ << std::endl; \
}