global debug_write foundation
commit75822c9a7704127e50ee0c085699773b138acf77
authorwgw <tjm1100@gmail.com>
Sat, 1 Mar 2008 03:53:03 +0000 (29 21:53 -0600)
committerwgw <tjm1100@gmail.com>
Sat, 1 Mar 2008 03:53:03 +0000 (29 21:53 -0600)
tree723a3ff76532ea1707963e7a2aac6498e81077d8
parent580dc99aa96426dca6221299da299ebeb4c33d78
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
config.py
debug.py [new file with mode: 0644]
httpserver.py
plugins/video/transcode.py
plugins/video/video.py
pyTivo.py