def debug(message):
outerFrame = getouterframes(currentframe())[1][0]
(args, _, _, values) = getargvalues(outerFrame)
argsValue = ''
for i in args:
if i is 'self':
continue
argsValue += "(%s=%s)" % (i, str(values[i]))
stack = extract_stack()
(filename, line, procname, text) = stack[-2]
LOGGER.debug(str(filename) + ' ' + str(procname) + str(argsValue) + ':' + str(line) + '> ' + str(message))
评论列表
文章目录