diff options
Diffstat (limited to 'src/mongo/util/net/sock.cpp')
-rw-r--r-- | src/mongo/util/net/sock.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/util/net/sock.cpp b/src/mongo/util/net/sock.cpp index 574c33e2b1a..206e0b65e22 100644 --- a/src/mongo/util/net/sock.cpp +++ b/src/mongo/util/net/sock.cpp @@ -27,7 +27,7 @@ * it in the license file. */ -#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kNetwork +#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kNetwork #include "mongo/platform/basic.h" @@ -225,14 +225,14 @@ Socket::Socket(int fd, const SockAddr& remote) _remote(remote), _timeout(0), _lastValidityCheckAtSecs(time(nullptr)), - _logLevel(logger::LogSeverity::Log()) { + _logLevel(logv2::LogSeverity::Log()) { _init(); if (fd >= 0) { _local = getLocalAddrForBoundSocketFd(_fd); } } -Socket::Socket(double timeout, logger::LogSeverity ll) : _logLevel(ll) { +Socket::Socket(double timeout, logv2::LogSeverity ll) : _logLevel(ll) { _fd = INVALID_SOCKET; _timeout = timeout; _lastValidityCheckAtSecs = time(nullptr); @@ -576,7 +576,7 @@ void Socket::handleSendError(int ret, const char* context) { if ((mongo_errno == EAGAIN || mongo_errno == EWOULDBLOCK) && _timeout != 0) { #endif LOGV2_DEBUG(23181, - logSeverityV1toV2(_logLevel).toInt(), + _logLevel.toInt(), "Socket {context} send() timed out {remoteHost}", "Socket send() to remote host timed out", "context"_attr = context, @@ -584,7 +584,7 @@ void Socket::handleSendError(int ret, const char* context) { throwSocketError(SocketErrorKind::SEND_TIMEOUT, remoteString()); } else if (mongo_errno != EINTR) { LOGV2_DEBUG(23182, - logSeverityV1toV2(_logLevel).toInt(), + _logLevel.toInt(), "Socket {context} send() {error} {remoteHost}", "Socket send() to remote host failed", "context"_attr = context, @@ -624,7 +624,7 @@ void Socket::handleRecvError(int ret, int len) { #endif // this is a timeout LOGV2_DEBUG(23184, - logSeverityV1toV2(_logLevel).toInt(), + _logLevel.toInt(), "Socket recv() timeout {remoteHost}", "Socket recv() timeout", "remoteHost"_attr = remoteString()); @@ -632,7 +632,7 @@ void Socket::handleRecvError(int ret, int len) { } LOGV2_DEBUG(23185, - logSeverityV1toV2(_logLevel).toInt(), + _logLevel.toInt(), "Socket recv() {error} {remoteHost}", "Socket recv() error", "error"_attr = errnoWithDescription(e), |