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

Unified Diff: dart/site/try/poi/poi.dart

Issue 625883002: Truncate verbose source print. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/poi/poi.dart
diff --git a/dart/site/try/poi/poi.dart b/dart/site/try/poi/poi.dart
index d7ae82d33a22666a1c4d8b90cd22cca37a06fd53..69fcea21d70250539a1420dbd7d3f361dc9676d7 100644
--- a/dart/site/try/poi/poi.dart
+++ b/dart/site/try/poi/poi.dart
@@ -197,7 +197,9 @@ api.CompilerInputProvider simulateMutation(
}
printVerbose('Not using cached version of $cachedFileName');
cache = new io.File(cachedFileName).readAsBytes().then((data) {
- printVerbose('Read file $cachedFileName: ${UTF8.decode(data)}');
+ printVerbose(
+ 'Read file $cachedFileName: '
+ '${UTF8.decode(data.sublist(0, 100), allowMalformed: true)}...');
return data;
});
count++;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698