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:
parent
add109f525
commit
07efce25ec
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user