From 8ddf7ee7435d2fa3ba98b1b3dd185548634f44f6 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Mon, 22 Jan 2018 14:41:30 -0800 Subject: [PATCH] Remove log.finest from source_gen. (#301) --- CHANGELOG.md | 7 +++++++ lib/src/builder.dart | 1 - pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22478756..b1f4d2ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.7.4+1 + +* Removed a `log.finest` with the output source of each generator. This allows + a verbose option (`-v`) for tools like bazel or build_runner to be much more + readable and debuggable. Files are emitted to disk for inspection in any + case. + ## 0.7.4 * Added `typeNameOf`, which is a safe way to get the name of a `DartType`, diff --git a/lib/src/builder.dart b/lib/src/builder.dart index 2ea210a3..ab10c96d 100644 --- a/lib/src/builder.dart +++ b/lib/src/builder.dart @@ -224,7 +224,6 @@ Stream _generate(LibraryElement library, var createdUnit = await gen.generate(libraryReader, buildStep); if (createdUnit != null && createdUnit.isNotEmpty) { - log.finest(() => 'Generated $createdUnit for ${buildStep.inputId}'); yield new GeneratedOutput(gen, createdUnit); } } catch (e, stack) { diff --git a/pubspec.yaml b/pubspec.yaml index 91b51c24..4eaab005 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: source_gen -version: 0.7.4 +version: 0.7.4+1 author: Dart Team description: Automated source code generation for Dart. homepage: https://github.com/dart-lang/source_gen