mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-07 06:36:47 -06:00
8 lines
208 B
Python
8 lines
208 B
Python
import inspect
|
|
|
|
def debug_msg(msg):
|
|
record = inspect.stack()[1]
|
|
frame = record[0]
|
|
info = inspect.getframeinfo( frame )
|
|
return "FILE: %s LINE: %s Msg: %s" % (info.filename, info.lineno, msg)
|