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

Unified Diff: runtime/vm/json_stream.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/isolate.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index 8700dc787a443571b18305e603edd3d360ffe996..4c229c9f368d664885e36fcf46e933faa4f893c9 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -124,8 +124,8 @@ void JSONStream::Setup(Zone* zone,
ASSERT(isolate != NULL);
const char* isolate_name = isolate->name();
setup_time_micros_ = OS::GetCurrentTimeMicros();
- OS::Print("[+%" Pd64 "ms] Isolate %s processing service request %s\n",
- Dart::UptimeMillis(), isolate_name, method_);
+ OS::PrintErr("[+%" Pd64 "ms] Isolate %s processing service request %s\n",
+ Dart::UptimeMillis(), isolate_name, method_);
}
buffer_.Printf("{\"jsonrpc\":\"2.0\", \"result\":");
}
@@ -282,15 +282,15 @@ void JSONStream::PostReply() {
const char* isolate_name = isolate->name();
int64_t total_time = OS::GetCurrentTimeMicros() - setup_time_micros_;
if (result) {
- OS::Print("[+%" Pd64
- "ms] Isolate %s processed service request %s "
- "(%" Pd64 "us)\n",
- Dart::UptimeMillis(), isolate_name, method_, total_time);
+ OS::PrintErr("[+%" Pd64
+ "ms] Isolate %s processed service request %s "
+ "(%" Pd64 "us)\n",
+ Dart::UptimeMillis(), isolate_name, method_, total_time);
} else {
- OS::Print("[+%" Pd64
- "ms] Isolate %s processed service request %s "
- "(%" Pd64 "us) FAILED\n",
- Dart::UptimeMillis(), isolate_name, method_, total_time);
+ OS::PrintErr("[+%" Pd64
+ "ms] Isolate %s processed service request %s "
+ "(%" Pd64 "us) FAILED\n",
+ Dart::UptimeMillis(), isolate_name, method_, total_time);
}
}
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698