mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -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)
|
servicepid = get_running_pid(bot)
|
||||||
debuglines = []
|
debuglines = []
|
||||||
for line in os.popen(str("sudo journalctl _PID=" + str(servicepid))).read().split('\n'):
|
for line in os.popen(str("sudo journalctl _PID=" + str(servicepid))).read().split('\n'):
|
||||||
if not str(line).startswith("-- Logs begin at"):
|
if not str(line).startswith("sudo") and not line.isspace():
|
||||||
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:
|
|
||||||
debuglines.append(str(line))
|
debuglines.append(str(line))
|
||||||
return debuglines
|
return debuglines
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user