mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
hmmmm
This commit is contained in:
parent
6a710e2b96
commit
8cc4d68378
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user