Skip to content

Instantly share code, notes, and snippets.

wd wd

Block or report user

Report or block wd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
papaben /
Created Nov 6, 2018
Figure out who disabled your logger
def _get_trace():
trace = u''
depth = 2 # skip call to this function
while True:
frame = sys._getframe(depth)
trace = u'%s:%s\n%s' % (
frame.f_code.co_filename, frame.f_lineno, trace
depth += 1
You can’t perform that action at this time.