-
Notifications
You must be signed in to change notification settings - Fork 2
/
debug.py
42 lines (35 loc) · 896 Bytes
/
debug.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# DEBUG STUFF
ERROR = '\033[91m' # Red
WARNING = '\033[93m' # Yello
NORMAL = '\033[0m' # Black
GOOD = '\033[92m' # Green
def errorMessage(*items):
global ERROR
out = ERROR + "[-] "
for item in items:
out += str(item)
print out + NORMAL
def warningMessage(*items):
global WARNING
out = WARNING + "[-] "
for item in items:
out += str(item)
print out + NORMAL
def infoMessage(*items):
global NORMAL
out = NORMAL + "[+] "
for item in items:
out += str(item)
print out + NORMAL
def goodMessage(*items):
global GOOD
out = GOOD + "[*] "
for item in items:
out += str(item)
print out + NORMAL
if __name__ == "__main__":
errorMessage("FAILED TO INIT SOMETHING")
warningMessage("The baby is in the oven")
infoMessage("I LIKE TRAINS")
goodMessage("The oven is off")
print "NOWAI"