File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed
Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -287,23 +287,21 @@ class ProgressBar : public Logger
287287
288288 else if (type == resBuildLogLine || type == resPostBuildLogLine) {
289289 auto lastLine = chomp (getS (fields, 0 ));
290- if (!lastLine.empty ()) {
291- auto i = state->its .find (act);
292- assert (i != state->its .end ());
293- ActInfo info = *i->second ;
294- if (printBuildLogs) {
295- auto suffix = " > " ;
296- if (type == resPostBuildLogLine) {
297- suffix = " (post)> " ;
298- }
299- log (*state, lvlInfo, ANSI_FAINT + info.name .value_or (" unnamed" ) + suffix + ANSI_NORMAL + lastLine);
300- } else {
301- state->activities .erase (i->second );
302- info.lastLine = lastLine;
303- state->activities .emplace_back (info);
304- i->second = std::prev (state->activities .end ());
305- update (*state);
290+ auto i = state->its .find (act);
291+ assert (i != state->its .end ());
292+ ActInfo info = *i->second ;
293+ if (printBuildLogs) {
294+ auto suffix = " > " ;
295+ if (type == resPostBuildLogLine) {
296+ suffix = " (post)> " ;
306297 }
298+ log (*state, lvlInfo, ANSI_FAINT + info.name .value_or (" unnamed" ) + suffix + ANSI_NORMAL + lastLine);
299+ } else {
300+ state->activities .erase (i->second );
301+ info.lastLine = lastLine;
302+ state->activities .emplace_back (info);
303+ i->second = std::prev (state->activities .end ());
304+ update (*state);
307305 }
308306 }
309307
You can’t perform that action at this time.
0 commit comments