helper: fix GUI log reset message

This commit is contained in:
hinto-janaiyo 2022-12-17 09:52:33 -05:00
parent 0e15f0a73a
commit d1a4d66268
No known key found for this signature in database
GPG key ID: B1C5A64B80691E45

View file

@ -269,7 +269,7 @@ impl Helper {
let len = output.len(); let len = output.len();
if len > GUI_OUTPUT_LEEWAY { if len > GUI_OUTPUT_LEEWAY {
info!("{} Watchdog | Output is nearing {} bytes, resetting!", name, MAX_GUI_OUTPUT_BYTES); info!("{} Watchdog | Output is nearing {} bytes, resetting!", name, MAX_GUI_OUTPUT_BYTES);
let text = format!("{}\n{} GUI log is exceeding the maximum: {} bytes!\nI've reset the logs for you!\n{}\n\n\n\n", name, HORI_CONSOLE, MAX_GUI_OUTPUT_BYTES, HORI_CONSOLE); let text = format!("{}\n{} GUI log is exceeding the maximum: {} bytes!\nI've reset the logs for you!\n{}\n\n\n\n", HORI_CONSOLE, name, MAX_GUI_OUTPUT_BYTES, HORI_CONSOLE);
output.clear(); output.clear();
output.push_str(&text); output.push_str(&text);
debug!("{} Watchdog | Resetting GUI output ... OK", name); debug!("{} Watchdog | Resetting GUI output ... OK", name);