From 8cc4d68378fed8271b7dd0a69cc7a6bb079abc80 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 9 May 2019 11:00:13 -0400 Subject: [PATCH] hmmmm --- sopel_modules/SpiceBot_Logs/Logs.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sopel_modules/SpiceBot_Logs/Logs.py b/sopel_modules/SpiceBot_Logs/Logs.py index 07c21c4..d862885 100644 --- a/sopel_modules/SpiceBot_Logs/Logs.py +++ b/sopel_modules/SpiceBot_Logs/Logs.py @@ -70,14 +70,7 @@ def errordisplay_fetch(bot): servicepid = get_running_pid(bot) debuglines = [] for line in os.popen(str("sudo journalctl _PID=" + str(servicepid))).read().split('\n'): - if not str(line).startswith("-- Logs begin at"): - line = str(line).split(str(os.uname()[1] + " "))[-1] - if not str(line).startswith("sudo"): - lineparts = str(line).split(": ") - del lineparts[0] - line = spicemanip.main(lineparts, 0) - debuglines.append(str(line)) - else: + if not str(line).startswith("sudo") and not line.isspace(): debuglines.append(str(line)) return debuglines