Skip to content

Commit c27e46e

Browse files
committed
SERVER-13269 general log message improvements for 2.6
1 parent 984fe4b commit c27e46e

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

src/mongo/db/auth/security_key.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace mongo {
6262

6363
bool authenticateInternalUser(DBClientWithCommands* conn){
6464
if (!isInternalAuthSet()) {
65-
log() << "ERROR: No authentication params set for internal user" << endl;
65+
log() << "ERROR: No authentication parameters set for internal user" << endl;
6666
return false;
6767
}
6868
try {

src/mongo/db/catalog/index_catalog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ namespace mongo {
778778
}
779779
else {
780780
if ( numIndexesTotal() || numSystemIndexesEntries || _entries.size() ) {
781-
error() << "about to fassert - "
781+
error() << "About to fassert - "
782782
<< " numIndexesTotal(): " << numIndexesTotal()
783783
<< " numSystemIndexesEntries: " << numSystemIndexesEntries
784784
<< " _entries.size(): " << _entries.size()

src/mongo/db/exec/collection_scan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ namespace mongo {
190190
++_commonStats.unyields;
191191
if (NULL != _iter) {
192192
if (!_iter->recoverFromYield()) {
193-
warning() << "collection dropped during yield of collscan or state deleted";
193+
warning() << "Collection dropped or state deleted during yield of CollectionScan";
194194
_nsDropped = true;
195195
}
196196
}

src/mongo/db/exec/index_scan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ namespace mongo {
9494
// Start at one key, end at another.
9595
Status status = _indexCursor->seek(_params.bounds.startKey);
9696
if (!status.isOK()) {
97-
warning() << "Seek failed: " << status.toString();
97+
warning() << "IndexCursor seek failed: " << status.toString();
9898
_hitEnd = true;
9999
}
100100
if (!isEOF()) {

src/mongo/db/index_rebuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ namespace mongo {
6666
}
6767
checkNS(collNames);
6868
}
69-
catch (const DBException&) {
70-
warning() << "index rebuilding did not complete" << endl;
69+
catch (const DBException& e) {
70+
warning() << "Index rebuilding did not complete: " << e.what() << endl;
7171
}
7272
boost::unique_lock<boost::mutex> lk(ReplSet::rss.mtx);
7373
ReplSet::rss.indexRebuildDone = true;

src/mongo/db/mongod_options.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,9 @@ namespace mongo {
649649
startupWarningsLog;
650650
}
651651
else if (!params.count("httpinterface")) {
652-
log() << "** WARNING --jsonp is specified without --httpinterface," <<
652+
log() << "** WARNING: --jsonp is specified without --httpinterface," <<
653653
startupWarningsLog;
654-
log() << "** enabling http interface" << startupWarningsLog;
654+
log() << "** enabling http interface" << startupWarningsLog;
655655
serverGlobalParams.isHttpInterfaceEnabled = true;
656656
}
657657
serverGlobalParams.jsonp = true;

src/mongo/db/query/index_bounds_builder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ namespace mongo {
528528
const GeoMatchExpression* gme = static_cast<const GeoMatchExpression*>(expr);
529529
// Can only do this for 2dsphere.
530530
if (!mongoutils::str::equals("2dsphere", elt.valuestrsafe())) {
531-
warning() << "Planner error trying to build geo bounds for " << elt.toString()
532-
<< " index element.";
531+
warning() << "Planner error, trying to build geo bounds for non-2dsphere"
532+
<< " index element: " << elt.toString() << endl;
533533
verify(0);
534534
}
535535

@@ -538,7 +538,7 @@ namespace mongo {
538538
*tightnessOut = IndexBoundsBuilder::INEXACT_FETCH;
539539
}
540540
else {
541-
warning() << "Planner error, trying to build bounds for expr "
541+
warning() << "Planner error, trying to build bounds for expression: "
542542
<< expr->toString() << endl;
543543
verify(0);
544544
}

src/mongo/db/storage/data_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace mongo {
107107
<< filename << endl;
108108
}
109109
else {
110-
log() << "openExisting size " << sz << " less then minimum file size expectation "
110+
log() << "openExisting size " << sz << " less than minimum file size expectation "
111111
<< filename << endl;
112112
verify(false);
113113
}

0 commit comments

Comments
 (0)