From af723171026b30c4e448ba510dc216e2db86e3ce Mon Sep 17 00:00:00 2001 From: Simon Pichugin Date: Mon, 2 Jan 2017 08:28:27 +0100 Subject: [PATCH] Ticket 49055 - Fix debugging mode issue Bug description: It is impossible to turn debugging mode on without modifying lib389 code. Fix description: Change the source of DEBUGGING constant from hard coded to the one from environment variable named DEBUGGING. https://fedorahosted.org/389/ticket/49055 Reviewed by: ? --- lib389/topologies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib389/topologies.py b/lib389/topologies.py index 6cd3d79..7880fb6 100644 --- a/lib389/topologies.py +++ b/lib389/topologies.py @@ -6,6 +6,7 @@ # See LICENSE for details. # --- END COPYRIGHT BLOCK --- # +import os import sys import time import logging @@ -14,7 +15,7 @@ from lib389 import DirSrv from lib389._constants import * from lib389.properties import * -DEBUGGING = False +DEBUGGING = os.getenv('DEBUGGING', default=False) if DEBUGGING: logging.getLogger(__name__).setLevel(logging.DEBUG) else: -- 2.9.3