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

Unified Diff: utils/pub/validator.dart

Issue 11437019: Add logging system to pub and sprinkle some logging in. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak output. Created 8 years 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 | « utils/pub/system_cache.dart ('k') | utils/pub/version_solver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator.dart
diff --git a/utils/pub/validator.dart b/utils/pub/validator.dart
index d5ab53c6c1874a84d7112455b489d11ade340ef0..bada90d86274a12c2758c37795cb737b9778e395 100644
--- a/utils/pub/validator.dart
+++ b/utils/pub/validator.dart
@@ -5,6 +5,7 @@
library validator;
import 'entrypoint.dart';
+import 'log.dart' as log;
import 'io.dart';
import 'system_cache.dart';
import 'utils.dart';
@@ -50,19 +51,19 @@ abstract class Validator {
var warnings = flatten(validators.map((validator) => validator.warnings));
if (!errors.isEmpty) {
- printError("== Errors:");
+ log.error("== Errors:");
for (var error in errors) {
- printError("* $error");
+ log.error("* $error");
}
- printError("");
+ log.error("");
}
if (!warnings.isEmpty) {
- printError("== Warnings:");
+ log.warning("== Warnings:");
for (var warning in warnings) {
- printError("* $warning");
+ log.warning("* $warning");
}
- printError("");
+ log.warning("");
}
return new Pair<List<String>, List<String>>(errors, warnings);
« no previous file with comments | « utils/pub/system_cache.dart ('k') | utils/pub/version_solver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698