mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-21 20:44:25 +01:00
Added stacktrace to debug
This commit is contained in:
parent
e80651c22e
commit
32541632b1
@ -11,6 +11,7 @@ See License at nikolaskama.me (https://nikolaskama.me/kickthemoutproject)
|
||||
import time, os, sys, logging, math
|
||||
from time import sleep
|
||||
import urllib2 as urllib
|
||||
import traceback
|
||||
BLUE, RED, WHITE, YELLOW, MAGENTA, GREEN, END = '\33[94m', '\033[91m', '\33[97m', '\33[93m', '\033[1;35m', '\033[1;32m', '\033[0m'
|
||||
|
||||
notRoot = False
|
||||
@ -88,6 +89,11 @@ def runDebug():
|
||||
print hostsList
|
||||
except:
|
||||
print ("Failed to print hostsList array...")
|
||||
try:
|
||||
print ("Crash trace: ")
|
||||
print(traceback.format_exc())
|
||||
except:
|
||||
print ("Failed to print crash trace...")
|
||||
print ("DEBUG FINISHED.\nShutting down...")
|
||||
print("{0}").format(END)
|
||||
raise SystemExit
|
||||
|
Loading…
Reference in New Issue
Block a user