示例#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))