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

Unified Diff: runtime/bin/dbg_connection.cc

Issue 11312242: Revised CL for customisable logging (replacing printfs). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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: runtime/bin/dbg_connection.cc
===================================================================
--- runtime/bin/dbg_connection.cc (revision 14977)
+++ runtime/bin/dbg_connection.cc (working copy)
@@ -5,6 +5,7 @@
#include "bin/dbg_connection.h"
#include "bin/dbg_message.h"
#include "bin/dartutils.h"
+#include "bin/log.h"
#include "bin/socket.h"
#include "bin/thread.h"
#include "bin/utils.h"
@@ -198,7 +199,8 @@
FATAL("Illegal JSON message received");
}
if (!found) {
- printf("'command' not found in JSON message: '%s'\n", msgbuf_->buf());
+ Log::Print("'command' not found in JSON message: '%s'\n",
+ msgbuf_->buf());
msgbuf_->PopMessage();
}
@@ -242,7 +244,7 @@
}
// This is an unrecognized command, report error and move on to next.
- printf("unrecognized command received: '%s'\n", msgbuf_->buf());
+ Log::Print("unrecognized command received: '%s'\n", msgbuf_->buf());
HandleUnknownMsg();
msgbuf_->PopMessage();
}

Powered by Google App Engine
This is Rietveld 408576698