Skip to content

Commit

Permalink
Apply suggestions from code review (status coloring)
Browse files Browse the repository at this point in the history
Co-authored-by: RD WebDesign <[email protected]>
Signed-off-by: Dominik <[email protected]>
  • Loading branch information
DL6ER and rdwebdesign authored Nov 25, 2024
1 parent 291cce6 commit cd11cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/message-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ static void format_gravity_restored_message(char *plain, const int sizeof_plain,

if(failed)
{
if(snprintf(html, sizeof_html, "Gravity database damaged, restore attempt <strong>failed</strong><br><br>Please check your filesystem for corruption, and your disk space for availability.") > sizeof_html)
if(snprintf(html, sizeof_html, "Gravity database damaged, restore attempt <strong class="log-red">failed</strong><br><br>Please check your filesystem for corruption, and your disk space for availability.") > sizeof_html)
log_warn("format_gravity_restored_message(): Buffer too small to hold HTML message, warning truncated");
}
else
Expand All @@ -1012,7 +1012,7 @@ static void format_gravity_restored_message(char *plain, const int sizeof_plain,
if(escaped_status == NULL)
return;

if(snprintf(html, sizeof_html, "Gravity database damaged, restore attempt <strong>successful</strong><br>The gravity database was restored using the backup file <code>%s</code><br><br>Please check your filesystem for corruption, and your disk space for availability.", escaped_status) > sizeof_html)
if(snprintf(html, sizeof_html, "Gravity database damaged, restore attempt <strong class="log-green">successful</strong><br>The gravity database was restored using the backup file <code>%s</code><br><br>Please check your filesystem for corruption, and your disk space for availability.", escaped_status) > sizeof_html)

free(escaped_status);
}
Expand Down

0 comments on commit cd11cc2

Please sign in to comment.