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

Unified Diff: pkg/polymer/lib/src/loader.dart

Issue 68103005: Use logger for polymer loader warning (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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: pkg/polymer/lib/src/loader.dart
diff --git a/pkg/polymer/lib/src/loader.dart b/pkg/polymer/lib/src/loader.dart
index eb0a7269c46b61897f9ea52a6e8225981fce697e..47fa3108ddbce493472995e9056357d16d8ff0f3 100644
--- a/pkg/polymer/lib/src/loader.dart
+++ b/pkg/polymer/lib/src/loader.dart
@@ -141,6 +141,8 @@ final _rootUri = currentMirrorSystem().isolate.rootLibrary.uri;
final String _packageRoot =
'${path.dirname(Uri.parse(window.location.href).path)}/packages/';
+final Logger _loaderLog = new Logger('polymer.loader');
+
/**
* Reads the library at [uriString] (which can be an absolute URI or a relative
* URI from the root library), and:
@@ -164,7 +166,7 @@ void _loadLibrary(String uriString) {
}
if (lib == null) {
- print('warning: $uri library not found');
+ _loaderLog.info('$uri library not found');
return;
}
« 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