Skip to content

Commit

Permalink
Allow control over server debug logging via an environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jul 9, 2016
1 parent ab158e8 commit d4a4a76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ZEO/tests/forker.py
Expand Up @@ -30,6 +30,8 @@

logger = logging.getLogger('ZEO.tests.forker')

DEBUG = os.environ.get('ZEO_TEST_SERVER_DEBUG')

class ZEOConfig:
"""Class to generate ZEO configuration file. """

Expand Down Expand Up @@ -88,7 +90,7 @@ def runner(config, qin, qout, timeout=None,
debug=False, name=None,
keep=False, protocol=None):

if debug:
if debug or DEBUG:
debug_logging()

old_protocol = None
Expand Down

0 comments on commit d4a4a76

Please sign in to comment.