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

Unified Diff: runtime/vm/service.cc

Issue 2998713002: [vm, gardening] Move --trace-service output to stderr. (Closed)
Patch Set: Created 3 years, 4 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 | « runtime/vm/json_stream.cc ('k') | runtime/vm/service_isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index f1614693021c5bbd79e46725777524b60c56b634..eb1899e0bde11e926db878856cbad5603f1460d6 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -129,7 +129,7 @@ static StreamInfo* streams_[] = {
bool Service::ListenStream(const char* stream_id) {
if (FLAG_trace_service) {
- OS::Print("vm-service: starting stream '%s'\n", stream_id);
+ OS::PrintErr("vm-service: starting stream '%s'\n", stream_id);
}
intptr_t num_streams = sizeof(streams_) / sizeof(streams_[0]);
for (intptr_t i = 0; i < num_streams; i++) {
@@ -148,7 +148,7 @@ bool Service::ListenStream(const char* stream_id) {
void Service::CancelStream(const char* stream_id) {
if (FLAG_trace_service) {
- OS::Print("vm-service: stopping stream '%s'\n", stream_id);
+ OS::PrintErr("vm-service: stopping stream '%s'\n", stream_id);
}
intptr_t num_streams = sizeof(streams_) / sizeof(streams_[0]);
for (intptr_t i = 0; i < num_streams; i++) {
@@ -911,7 +911,7 @@ void Service::SendEvent(const char* stream_id,
ASSERT(!ServiceIsolate::IsServiceIsolateDescendant(isolate));
if (FLAG_trace_service) {
- OS::Print(
+ OS::PrintErr(
"vm-service: Pushing ServiceEvent(isolate='%s', kind='%s',"
" len=%" Pd ") to stream %s\n",
isolate->name(), event_type, bytes_length, stream_id);
@@ -1096,7 +1096,7 @@ void Service::PostEvent(Isolate* isolate,
if (isolate != NULL) {
isolate_name = isolate->name();
}
- OS::Print(
+ OS::PrintErr(
"vm-service: Pushing ServiceEvent(isolate='%s', kind='%s') "
"to stream %s\n",
isolate_name, kind, stream_id);
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/service_isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698