diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-02-06 16:02:47 -0500 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-02-10 16:50:58 -0500 |
commit | e095f8979cd79c16c49cd20ffe8d46c494cf6891 (patch) | |
tree | ed76e8b8c64c16d5b36a9f511effe547ea810449 /src/mongo/db/repl/sync_source_feedback.cpp | |
parent | 40e5c7f39b967411bba4733c445f408f906a26b5 (diff) | |
download | mongo-e095f8979cd79c16c49cd20ffe8d46c494cf6891.tar.gz |
SERVER-17176 refine replication log severities and message bodies
Diffstat (limited to 'src/mongo/db/repl/sync_source_feedback.cpp')
-rw-r--r-- | src/mongo/db/repl/sync_source_feedback.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/sync_source_feedback.cpp b/src/mongo/db/repl/sync_source_feedback.cpp index 593f99e663c..1fd1ce3b980 100644 --- a/src/mongo/db/repl/sync_source_feedback.cpp +++ b/src/mongo/db/repl/sync_source_feedback.cpp @@ -131,7 +131,7 @@ namespace repl { " are syncing, please update all nodes to 2.6 or later.", errMsg.find("no such cmd") == std::string::npos); - log() << "replSet error while handshaking the upstream updater: " + error() << "Error while handshaking the upstream updater: " << errMsg; // sleep half a second if we are not in our sync source's config @@ -163,19 +163,19 @@ namespace repl { if (hasConnection()) { return true; } - log() << "replset setting syncSourceFeedback to " << host.toString(); + log() << "setting syncSourceFeedback to " << host.toString(); _connection.reset(new DBClientConnection(false, 0, OplogReader::tcp_timeout)); string errmsg; try { if (!_connection->connect(host, errmsg) || (getGlobalAuthorizationManager()->isAuthEnabled() && !replAuthenticate())) { _resetConnection(); - log() << "repl: " << errmsg << endl; + log() << errmsg << endl; return false; } } catch (const DBException& e) { - log() << "Error connecting to " << host.toString() << ": " << e.what(); + error() << "Error connecting to " << host.toString() << ": " << e.what(); _resetConnection(); return false; } |