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

Unified Diff: runtime/bin/dbg_connection_macos.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_macos.cc
===================================================================
--- runtime/bin/dbg_connection_macos.cc (revision 14903)
+++ runtime/bin/dbg_connection_macos.cc (working copy)
@@ -12,6 +12,7 @@
#include "bin/dartutils.h"
#include "bin/dbg_connection.h"
#include "bin/fdutils.h"
+#include "bin/log.h"
#include "bin/socket.h"
#include "platform/thread.h"
#include "platform/utils.h"
@@ -87,10 +88,10 @@
} else if (ident == wakeup_fds_[0]) {
Message msg;
if (ReceiveMessage(&msg)) {
- printf("Received sync message id %d.\n", msg.msg_id);
+ Log::Print("Received sync message id %d.\n", msg.msg_id);
}
} else {
- printf("unexpected: receiving debugger connection event.\n");
+ Log::Print("unexpected: receiving debugger connection event.\n");
UNIMPLEMENTED();
}
}
@@ -113,7 +114,7 @@
}
}
}
- printf("shutting down debugger thread\n");
+ Log::Print("shutting down debugger thread\n");
}

Powered by Google App Engine
This is Rietveld 408576698