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

Unified Diff: net/tools/quic/quic_client.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/platform/impl/quic_socket_utils_test.cc ('k') | net/tools/quic/quic_client_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index e072fd601a9421d24e3c5285842a612531d4eab1..bfd2442cd257d4d2d9029fb430e80bc56e578497 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_server_id.h"
#include "net/quic/core/spdy_utils.h"
#include "net/quic/platform/api/quic_bug_tracker.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";
}
}
« no previous file with comments | « net/tools/quic/platform/impl/quic_socket_utils_test.cc ('k') | net/tools/quic/quic_client_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698