예제 #1
0
def debug(lvl, msg):
	if lvl <= debug_level:
		sys.stderr.write("%s: %s\n" % (realtime.elapsed_str(), msg))
예제 #2
0
def error(msg):
	sys.stderr.write("ERROR occurred at %s:\n%s\n" % (realtime.elapsed_str(), msg))