Merge pull request #12411 from keszybz/pr/12394

run: when emitting the calendarspec warning, use red
This commit is contained in:
Lennart Poettering
2019-05-08 10:11:32 -04:00
committed by GitHub
30 changed files with 80 additions and 26 deletions
+2 -15
View File
@@ -163,21 +163,8 @@ static bool print_multiline(
bool ellipsized = false;
int line = 0;
if (flags & OUTPUT_COLOR) {
if (priority <= LOG_ERR) {
color_on = ANSI_HIGHLIGHT_RED;
color_off = ANSI_NORMAL;
highlight_on = ANSI_HIGHLIGHT;
} else if (priority <= LOG_NOTICE) {
color_on = ANSI_HIGHLIGHT;
color_off = ANSI_NORMAL;
highlight_on = ANSI_HIGHLIGHT_RED;
} else if (priority >= LOG_DEBUG) {
color_on = ANSI_GREY;
color_off = ANSI_NORMAL;
highlight_on = ANSI_HIGHLIGHT_RED;
}
}
if (flags & OUTPUT_COLOR)
get_log_colors(priority, &color_on, &color_off, &highlight_on);
/* A special case: make sure that we print a newline when
the message is empty. */