Commit 09c83e45 authored by Andreas Jung's avatar Andreas Jung

getting rid of zLOG

parent c69def3e
...@@ -42,31 +42,6 @@ class Dummy: ...@@ -42,31 +42,6 @@ class Dummy:
__repr__ = __str__ __repr__ = __str__
def catch_log_errors():
import zLOG
if hasattr(zLOG, 'old_log_write'):
return
def log_write(subsystem, severity, summary, detail, error,
PROBLEM=zLOG.PROBLEM):
# we are logging an exception - lets assume that the last exception
# raised was the one we're interested in, so re-raise it rather
# than the less-than-useful assert below
if error is not None:
raise
if severity > PROBLEM:
assert 0, "%s(%s): %s" % (subsystem, severity, summary)
zLOG.old_log_write = zLOG.log_write
zLOG.log_write = log_write
def ignore_log_errors():
import zLOG
if hasattr(zLOG, 'old_log_write'):
zLOG.log_write = zLOG.old_log_write
del zLOG.old_log_write
def Testing_file(*args): def Testing_file(*args):
dir = os.path.split(Testing.__file__)[0] dir = os.path.split(Testing.__file__)[0]
......
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