From 1a0d9442d7fa410775c926d94a67c049f5e933a8 Mon Sep 17 00:00:00 2001 From: dylan <58234511@qq.com> Date: Wed, 26 Apr 2023 15:17:03 +0800 Subject: [PATCH] debug --- jd_comment.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jd_comment.py b/jd_comment.py index 9356770..6974082 100644 --- a/jd_comment.py +++ b/jd_comment.py @@ -611,6 +611,11 @@ if __name__ == '__main__': 'dry_run': args.dry_run, 'log_level': args.log_level } + if "DEBUG" in os.environ and os.environ["DEBUG"] == 'true': + opts = { + 'dry_run': args.dry_run, + 'log_level': 'DEBUG' + } if hasattr(args, 'log_file'): opts['log_file'] = args.log_file else: