File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
44import 'dart:async' ;
5+ import 'dart:convert' ;
56import 'dart:io' ;
67
78import 'package:build/build.dart' ;
@@ -105,12 +106,16 @@ void _defaultLogListener(LogRecord record) {
105106 }
106107 }
107108
108- if (record.level > Level .INFO || ! _isPosixTerminal) {
109+ var message = lines.join ('\n ' );
110+
111+ var multiLine = LineSplitter .split (message).length > 1 ;
112+
113+ if (record.level > Level .INFO || ! _isPosixTerminal || multiLine) {
114+ // Add an extra line to the output so the last line is written over.
109115 lines.add ('' );
116+ message = lines.join ('\n ' );
110117 }
111118
112- var message = lines.join ('\n ' );
113-
114119 if (record.level >= Level .SEVERE ) {
115120 stderr.write (message);
116121 } else {
Original file line number Diff line number Diff line change 11name : build_runner
2- version : 0.3.4
2+ version : 0.3.5-dev
33description : Tools to write binaries that run builders.
44author :
Dart Team <[email protected] > 55homepage : https://github.com/dart-lang/build
You can’t perform that action at this time.
0 commit comments