This commit is contained in:
Iris De Santis 2024-08-05 14:19:40 +02:00
parent 2c325e9cdb
commit dcd54c3807

View file

@ -7,4 +7,4 @@ def check_boot_errors():
result = subprocess.run(["dmesg"], capture_output=True, text=True)
errors = result.stdout.lower().count("error")
if errors > 30:
log_message("Last boot has had more than 30 errors,, :( (according to dmesg)" + environ.get("BOT_OWNER") + " please check the logs!")
log_message("Last boot has had more than 30 errors,, :c (according to dmesg)" + environ.get("BOT_OWNER") + " please check the logs!")