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

Unified Diff: lib/src/command/serve.dart

Issue 1267023002: Collapse successful GET messages together. (Closed) Base URL: https://github.com/dart-lang/pub.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | lib/src/log.dart » ('j') | lib/src/log.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/serve.dart
diff --git a/lib/src/command/serve.dart b/lib/src/command/serve.dart
index e43a9fc2bfa8f6c67b382bf74165e3f3f0d242f6..7462da089c520bf9e916e46547f30feb3db73bbc 100644
--- a/lib/src/command/serve.dart
+++ b/lib/src/command/serve.dart
@@ -158,6 +158,7 @@ class ServeCommand extends BarbackCommand {
if (result.isSuccess) {
buffer.write(
"${log.green('GET')} ${result.url.path} $_arrow ${result.id}");
+ log.collapsible(buffer);
} else {
buffer.write("${log.red('GET')} ${result.url.path} $_arrow");
@@ -167,9 +168,9 @@ class ServeCommand extends BarbackCommand {
} else {
buffer.write(" $error");
}
- }
- log.message(buffer);
+ log.error(buffer);
+ }
}, onError: _fatalError);
log.message("Serving ${entrypoint.root.name} "
« no previous file with comments | « no previous file | lib/src/log.dart » ('j') | lib/src/log.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698