Fix regression in displaying progress at runtime

We don't want to show progress (starting/stopping/restaring) at
runtime, since Finit v3.  Many systems hooked up to a console
get confused by sudden output, or even ansi escape sequences.

This patch drops code added recently which caused a regression
in this policy.  The resulting code is even more readable.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-02-25 00:22:01 +01:00
parent 477b50b7a6
commit 939c6f2f67
2 changed files with 0 additions and 4 deletions
-3
View File
@@ -185,9 +185,6 @@ char *strip_line(char *line)
void enable_progress(int onoff)
{
if (debug)
return;
if (onoff)
progress_style = progress_onoff;
else
-1
View File
@@ -85,7 +85,6 @@ void log_debug(void)
screen_init();
}
log_open();
enable_progress(1);
logit(LOG_NOTICE, "Debug mode %s", debug ? "enabled" : "disabled");
}