Commit e894d79f authored by Jakob Luettgau's avatar Jakob Luettgau
Browse files

Remove debug.py in favor of using logging.

parent 5bc35e44
#!/usr/bin/env python
import sys
DEBUG = False
def debug_print(string):
"""
Print debug messages if the module's global debug flag is enabled.
"""
if DEBUG:
sys.stderr.write(string + "\n")
return
def error(string):
"""
Handle errors generated within TOKIO. Currently just a passthrough to
stderr; should probably provide exceptions later on.
"""
sys.stderr.write(string + "\n")
def warning(string):
"""
Handle warnings generated within TOKIO. Currently just a passthrough to
stderr; should probably provide a more rigorous logging/reporting
interface later on.
"""
sys.stderr.write(string + "\n")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment