added a function for debug/info logging
parent
e39368bf41
commit
928fa91671
4
main.py
4
main.py
|
@ -13,6 +13,10 @@ EXIT_ERROR=1
|
|||
default_configuration = {
|
||||
"window geometry": "640x480"
|
||||
}
|
||||
def info(message):
|
||||
# print info to sys.stderr because it isn’t really output, just debug information
|
||||
print("INFO: "+str(message), file=sys.stderr)
|
||||
traceback.print_stack()
|
||||
|
||||
def warn(message, is_exception=False):
|
||||
print("WARNING: "+str(message), file=sys.stderr)
|
||||
|
|
Reference in New Issue