@@ -101,14 +101,10 @@ impl Progress for DumbConsoleProgress {
101
101
// ignore
102
102
}
103
103
104
- fn task_finished ( & mut self , id : BuildId , build : & Build , result : & TaskResult ) {
104
+ fn task_finished ( & mut self , _id : BuildId , build : & Build , result : & TaskResult ) {
105
105
match result. termination {
106
106
Termination :: Success => {
107
- if result. output . is_empty ( ) || self . last_started == Some ( id) {
108
- // Output is empty, or we just printed the command, don't print it again.
109
- } else {
110
- self . log ( build_message ( build, false ) )
111
- }
107
+ // Common case: don't show anything.
112
108
}
113
109
Termination :: Interrupted => {
114
110
self . log_when_failed ( & format ! ( "interrupted: {}" , build_message( build, true ) ) )
@@ -281,11 +277,7 @@ impl FancyState {
281
277
. remove ( self . tasks . iter ( ) . position ( |t| t. id == id) . unwrap ( ) ) ;
282
278
match result. termination {
283
279
Termination :: Success => {
284
- if result. output . is_empty ( ) {
285
- // Common case: don't show anything.
286
- } else {
287
- self . log ( build_message ( build, false ) )
288
- }
280
+ // Common case: don't show anything.
289
281
}
290
282
Termination :: Interrupted => self . log_when_failed ( & format ! (
291
283
"{} {}" ,
@@ -311,9 +303,7 @@ impl FancyState {
311
303
312
304
fn log ( & mut self , msg : & str ) {
313
305
self . clear_progress ( ) ;
314
- if self . callback . is_none ( ) {
315
- println ! ( "{}" , msg) ;
316
- }
306
+ println ! ( "{}" , msg) ;
317
307
self . dirty ( ) ;
318
308
}
319
309
0 commit comments