diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-04-30 15:20:51 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-05-01 09:53:56 -0400 |
commit | d3961a489a651d6e05d19fa20499a34a819a5088 (patch) | |
tree | 35e098c0ab2145a3a95b4408f13336ce77d7af20 /src/mongo/util/log.h | |
parent | 7e3f93197f73e5a2e0d1cff55c928dde102aa970 (diff) | |
download | mongo-d3961a489a651d6e05d19fa20499a34a819a5088.tar.gz |
SERVER-13797 Remove usages of Client::getContext()
This change does not remove all usage of Client::getContext(), but only
the simpler ones.
Diffstat (limited to 'src/mongo/util/log.h')
-rw-r--r-- | src/mongo/util/log.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/util/log.h b/src/mongo/util/log.h index bba73ff29c0..6219b3c5d45 100644 --- a/src/mongo/util/log.h +++ b/src/mongo/util/log.h @@ -98,12 +98,8 @@ namespace logger { if ((!::mongo::debug && ((DLEVEL) > tlogLevel)) || !::mongo::logger::globalLogDomain()->shouldLog(::mongo::LogstreamBuilder::severityCast(DLEVEL))) {} \ else LogstreamBuilder(::mongo::logger::globalLogDomain(), getThreadName(), ::mongo::LogstreamBuilder::severityCast(DLEVEL)) - /* default impl returns "" -- mongod overrides */ - extern const char * (*getcurns)(); - inline LogstreamBuilder problem() { - std::string curns = getcurns(); - return log().setBaseMessage(curns); + return log(); } /** |