Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Unified Diff: net/tools/quic/platform/impl/quic_socket_utils.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix failed test? Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/platform/impl/quic_socket_utils_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/platform/impl/quic_socket_utils.cc
diff --git a/net/tools/quic/platform/impl/quic_socket_utils.cc b/net/tools/quic/platform/impl/quic_socket_utils.cc
index 5a821dcfd79f907304204586c89623f0bd758617..bb1fcbd7aad693df08f13fb560b29f79d167a2fa 100644
--- a/net/tools/quic/platform/impl/quic_socket_utils.cc
+++ b/net/tools/quic/platform/impl/quic_socket_utils.cc
@@ -12,10 +12,10 @@
#include <sys/uio.h>
#include <string>
-#include "base/logging.h"
#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_packets.h"
#include "net/quic/platform/api/quic_bug_tracker.h"
+#include "net/quic/platform/api/quic_logging.h"
#include "net/quic/platform/api/quic_socket_address.h"
#ifndef SO_RXQ_OVFL
@@ -277,7 +277,7 @@ int QuicSocketUtils::CreateUDPSocket(const QuicSocketAddress& address,
int address_family = address.host().AddressFamilyToInt();
int fd = socket(address_family, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP);
if (fd < 0) {
- LOG(ERROR) << "socket() failed: " << strerror(errno);
+ QUIC_LOG(ERROR) << "socket() failed: " << strerror(errno);
return -1;
}
@@ -285,7 +285,7 @@ int QuicSocketUtils::CreateUDPSocket(const QuicSocketAddress& address,
int rc = setsockopt(fd, SOL_SOCKET, SO_RXQ_OVFL, &get_overflow,
sizeof(get_overflow));
if (rc < 0) {
- DLOG(WARNING) << "Socket overflow detection not supported";
+ QUIC_DLOG(WARNING) << "Socket overflow detection not supported";
} else {
*overflow_supported = true;
}
@@ -306,8 +306,8 @@ int QuicSocketUtils::CreateUDPSocket(const QuicSocketAddress& address,
rc = SetGetSoftwareReceiveTimestamp(fd);
if (rc < 0) {
- LOG(WARNING) << "SO_TIMESTAMPING not supported; using fallback: "
- << strerror(errno);
+ QUIC_LOG(WARNING) << "SO_TIMESTAMPING not supported; using fallback: "
+ << strerror(errno);
}
return fd;
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/platform/impl/quic_socket_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698