Add logging system to pub and sprinkle some logging in.
We'll have to tune which things we log over time, but this covers most IO operations which is where almost all of our problems come from. This patch also means that going forward you should no longer call print() or printError() (which is gone) directly. Instead: print() -> log.message() printError() -> log.error() That ensures all messages will correctly get added to the log's transcript. Review URL: https://codereview.chromium.org//11437019 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@15827 260f80e4-7a28-3924-810f-c04153c831b5
Showing
- lib/src/command_help.dart 3 additions, 2 deletionslib/src/command_help.dart
- lib/src/command_install.dart 2 additions, 1 deletionlib/src/command_install.dart
- lib/src/command_lish.dart 13 additions, 5 deletionslib/src/command_lish.dart
- lib/src/command_update.dart 2 additions, 1 deletionlib/src/command_update.dart
- lib/src/curl_client.dart 7 additions, 0 deletionslib/src/curl_client.dart
- lib/src/entrypoint.dart 9 additions, 2 deletionslib/src/entrypoint.dart
- lib/src/git.dart 2 additions, 0 deletionslib/src/git.dart
- lib/src/hosted_source.dart 2 additions, 1 deletionlib/src/hosted_source.dart
- lib/src/io.dart 113 additions, 33 deletionslib/src/io.dart
- lib/src/log.dart 217 additions, 0 deletionslib/src/log.dart
- lib/src/oauth2.dart 27 additions, 15 deletionslib/src/oauth2.dart
- lib/src/pub.dart 63 additions, 28 deletionslib/src/pub.dart
- lib/src/system_cache.dart 2 additions, 0 deletionslib/src/system_cache.dart
- lib/src/validator.dart 7 additions, 6 deletionslib/src/validator.dart
- lib/src/version_solver.dart 10 additions, 1 deletionlib/src/version_solver.dart
- test/pub_test.dart 10 additions, 3 deletionstest/pub_test.dart
- test/test_pub.dart 2 additions, 2 deletionstest/test_pub.dart
Loading
Please register or sign in to comment