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

Unified Diff: net/tools/quic/quic_client.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix for win 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
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index c074146e6f4ca4018a51e0e63a3cc652159acea2..b31108cb1f887529ffeb0a18e39ced81812b0c0f 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -11,7 +11,6 @@
#include <sys/socket.h>
#include <unistd.h>
-#include "base/logging.h"
#include "base/run_loop.h"
#include "net/base/sockaddr_storage.h"
#include "net/quic/core/crypto/quic_random.h"
@@ -22,6 +21,7 @@
#include "net/quic/core/quic_packets.h"
#include "net/quic/core/quic_server_id.h"
#include "net/quic/core/spdy_utils.h"
+#include "net/quic/platform/api/quic_logging.h"
#include "net/tools/quic/platform/impl/quic_socket_utils.h"
#include "net/tools/quic/quic_epoll_alarm_factory.h"
#include "net/tools/quic/quic_epoll_connection_helper.h"
@@ -104,12 +104,13 @@ bool QuicClient::CreateUDPSocketAndBind(QuicSocketAddress server_address,
sockaddr_storage addr = client_address.generic_address();
int rc = bind(fd, reinterpret_cast<sockaddr*>(&addr), sizeof(addr));
if (rc < 0) {
- LOG(ERROR) << "Bind failed: " << strerror(errno);
+ QUIC_LOG(ERROR) << "Bind failed: " << strerror(errno);
return false;
}
if (client_address.FromSocket(fd) != 0) {
- LOG(ERROR) << "Unable to get self address. Error: " << strerror(errno);
+ QUIC_LOG(ERROR) << "Unable to get self address. Error: "
+ << strerror(errno);
}
fd_address_map_[fd] = client_address;
@@ -160,7 +161,7 @@ void QuicClient::OnEvent(int fd, EpollEvent* event) {
session()->connection()->OnCanWrite();
}
if (event->in_events & EPOLLERR) {
- DVLOG(1) << "Epollerr";
+ QUIC_DLOG(INFO) << "Epollerr";
}
}

Powered by Google App Engine
This is Rietveld 408576698