0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-19035 log that connection succeeded after it actually did

This commit is contained in:
Adam Midvidy 2015-06-26 10:30:48 -04:00
parent add109f525
commit 07efce25ec

View File

@ -1019,8 +1019,6 @@ Status DBClientConnection::connectSocketOnly(const HostAndPort& serverAddress) {
return Status(ErrorCodes::OperationFailed,
str::stream() << "couldn't connect to server " << _serverAddress.toString()
<< ", connection attempt failed");
} else {
LOG(1) << "connected to server " << toString() << endl;
}
#ifdef MONGO_CONFIG_SSL
@ -1033,6 +1031,7 @@ Status DBClientConnection::connectSocketOnly(const HostAndPort& serverAddress) {
#endif
_failed = false;
LOG(1) << "connected to server " << toString() << endl;
return Status::OK();
}