New submission from Peda Venkateswarlu Pola <pola.ve...@gmail.com>: As we have some new requirements in standard logging, We have written wrapper logger. This includes find caller which gives information about filename , line number , class name and method name. As i found that python logger doesn't give class name so we get the code from python logger and modified to our requirement.
We end up with the following error intermittently from the function "currentframe()" . "AttributeError: 'module' object has no attribute 'exc_traceback'" def currentframe(): """Return the frame object for the caller's stack frame.""" try: raise Exception except: return sys.exc_traceback.tb_frame.f_back Please help me out ASAP. Great thanks in advance. ---------- components: None files: findcaller_modi.py messages: 120913 nosy: polavenki priority: normal severity: normal status: open title: AttributeError: 'module' object has no attribute 'exc_traceback' type: crash versions: Python 2.5 Added file: http://bugs.python.org/file19563/findcaller_modi.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10380> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com