Skip to content

Commit 683e5af

Browse files
committed
set debug via environment variable
1 parent 4fdeca4 commit 683e5af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/dorelease.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
from string import split
5555

5656
_files = []
57-
debug = False
5857
logger = logging.getLogger("release")
5958

6059
class MyError(Exception):
@@ -197,13 +196,12 @@ def main():
197196
else:
198197
user = arguments.user[0]
199198

200-
if arguments.debug:
199+
if arguments.debug or os.environ["OPENGROK_RELEASE_DEBUG"]:
201200
logging.basicConfig(
202201
level=logging.DEBUG,
203202
format="%(asctime)s [%(levelname)-7s] [line %(lineno)d] %(name)s: %(message)s",
204203
stream=sys.stderr)
205204
logger.setLevel(logging.DEBUG)
206-
debug = True
207205

208206
# There is exactly 1 item in the list.
209207
# TODO: there should be better way how to achieve this.

0 commit comments

Comments
 (0)