diff options
author | Geert Bosch <geert@mongodb.com> | 2015-06-19 13:12:27 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2015-06-19 16:26:40 -0400 |
commit | d09fdf2b5887bfd6773f1a6da374a1ff7fc0e242 (patch) | |
tree | 183c79cb8d2467ffc3e3a2f7ec211e479d6cb810 /src | |
parent | 53437f5758f548414a483391e6e82779540d2487 (diff) | |
download | mongo-d09fdf2b5887bfd6773f1a6da374a1ff7fc0e242.tar.gz |
SERVER-19054: Don't log background tasks taking less than 100ms
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/util/background.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/util/background.cpp b/src/mongo/util/background.cpp index 6dfa29f5d40..a7ee913defe 100644 --- a/src/mongo/util/background.cpp +++ b/src/mongo/util/background.cpp @@ -361,7 +361,8 @@ namespace mongo { } const int ms = timer.millis(); - LOG( ms <= 3 ? 3 : 0 ) << "task: " << taskName << " took: " << ms << "ms" << endl; + const int kMinLogMs = 100; + LOG( ms <= kMinLogMs ? 3 : 0 ) << "task: " << taskName << " took: " << ms << "ms" << endl; } } // namespace mongo |