global debug_write foundation
Moved debug_write functions from each module to a single
occurance in debug.py. Added __name__ to all debug_write
calls to display calling module in debug.txt. Added function
fn_attr() to all debug_write calls to provide module line
number and calling function name for display in debug.txt.
Usage: add "from debug import debug_write, fn_attr" to module
if debug_write is desired. debug_write statement format is
"debug_write(__name__, fn_attr(), ['text to write', '\n'])"
Example output to debug.txt:
plugins.video.video.152 [hack] leftAnchor matched.
plugins.video.transcode.97 [select_aspect] aspect169: True
plugins.video.transcode.373 [video_info] failed at akbps