summaryrefslogtreecommitdiff
path: root/src/mongo/util/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/log.cpp')
-rw-r--r--src/mongo/util/log.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/util/log.cpp b/src/mongo/util/log.cpp
index 52fba9ae070..84fc1399c21 100644
--- a/src/mongo/util/log.cpp
+++ b/src/mongo/util/log.cpp
@@ -64,6 +64,11 @@ namespace mongo {
RotatableFileManager* manager = logger::globalRotatableFileManager();
RotatableFileManager::FileNameStatusPairVector result(
manager->rotateAll("." + terseCurrentTime(false)));
+ for (RotatableFileManager::FileNameStatusPairVector::iterator it = result.begin();
+ it != result.end(); it++) {
+ warning() << "Rotating log file " << it->first << " failed: " << it->second.toString()
+ << endl;
+ }
return result.empty();
}