Skip to content

Commit 75a0708

Browse files
committed
script/ptl-tool: add switch for debugging
Signed-off-by: Patrick Donnelly <[email protected]>
1 parent 284ada5 commit 75a0708

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/script/ptl-tool.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ def main():
398398
else:
399399
argv = sys.argv[1:]
400400
parser.add_argument('--branch', dest='branch', action='store', default=default_branch, help='branch to create ("HEAD" leaves HEAD detached; i.e. no branch is made)')
401+
parser.add_argument('--debug', dest='debug', action='store_true', help='turn debugging on')
401402
parser.add_argument('--debug-build', dest='debug_build', action='store_true', help='append -debug to branch name prompting ceph-build to build with CMAKE_BUILD_TYPE=Debug')
402403
parser.add_argument('--merge-branch-name', dest='merge_branch_name', action='store', default=False, help='name of the branch for merge messages')
403404
parser.add_argument('--base', dest='base', action='store', default=default_base, help='base for branch')
@@ -409,6 +410,10 @@ def main():
409410
parser.add_argument('--stop-at-built', dest='stop_at_built', action='store_true', help='stop execution when branch is built')
410411
parser.add_argument('prs', metavar="PR", type=int, nargs='*', help='Pull Requests to merge')
411412
args = parser.parse_args(argv)
413+
414+
if args.debug:
415+
log.setLevel(logging.DEBUG)
416+
412417
return build_branch(args)
413418

414419
if __name__ == "__main__":

0 commit comments

Comments
 (0)