Chromium Code Reviews| Index: utils/pub/command_lish.dart |
| diff --git a/utils/pub/command_lish.dart b/utils/pub/command_lish.dart |
| index c2def2f15208b7cf61ba34169253dd5c8c43fb15..f808b288ba532c4c11c6fd92ac46f15ca8a3d493 100644 |
| --- a/utils/pub/command_lish.dart |
| +++ b/utils/pub/command_lish.dart |
| @@ -10,10 +10,11 @@ import 'dart:uri'; |
| import '../../pkg/args/lib/args.dart'; |
| import '../../pkg/http/lib/http.dart' as http; |
| -import 'pub.dart'; |
| -import 'io.dart'; |
| import 'git.dart' as git; |
| +import 'io.dart'; |
| +import 'log.dart' as log; |
| import 'oauth2.dart' as oauth2; |
| +import 'pub.dart'; |
| // TODO(nweiz): Make "publish" the primary name for this command. See issue |
| // 6949. |
| @@ -50,6 +51,8 @@ class LishCommand extends PubCommand { |
| return Futures.wait([ |
| client.get(server.resolve("/packages/versions/new.json")), |
| _filesToPublish.transform((files) { |
| + log.fine('Archiving and publishing:'); |
| + files.forEach(log.fine); |
|
nweiz
2012/12/05 23:56:54
Probably more readable if we indent these file nam
Bob Nystrom
2012/12/06 01:33:26
Done.
|
| return createTarGz(files, baseDir: entrypoint.root.dir); |
| }).chain(consumeInputStream) |
| ]).chain((results) { |
| @@ -84,7 +87,7 @@ class LishCommand extends PubCommand { |
| parsed['success']['message'] is! String) { |
| _invalidServerResponse(response); |
| } |
| - print(parsed['success']['message']); |
| + log.message(parsed['success']['message']); |
| }); |
| }).transformException((e) { |
| if (e is PubHttpException) { |
| @@ -107,7 +110,7 @@ class LishCommand extends PubCommand { |
| if (e is! oauth2.ExpirationException) throw e; |
| - printError("Pub's authorization to upload packages has expired and can't " |
| + log.error("Pub's authorization to upload packages has expired and can't " |
| "be automatically refreshed."); |
| return onRun(); |
| }); |