1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

Print URLs and xpaths in debug rather than verbose mode

This commit is contained in:
Daniel Mach 2022-08-30 12:38:04 +02:00
parent 615935de27
commit 79b8c34aa6

View File

@ -3327,7 +3327,7 @@ def makeurl(baseurl, l, query=[]):
function. In case of a list not -- this is to be backwards compatible.
"""
if conf.config['verbose']:
if conf.config['debug']:
print('makeurl:', baseurl, l, query)
if isinstance(query, type(list())):
@ -4362,7 +4362,7 @@ def get_review_list(apiurl, project='', package='', byuser='', bygroup='', bypro
xpath_base = xpath_join(xpath_base, 'action/source/@%(kind)s=\'%(val)s\'', op='or', inner=True)
xpath = xpath_join(xpath, xpath_base % {'kind': kind, 'val': val}, op='and', nexpr_parentheses=True)
if conf.config['verbose']:
if conf.config['debug']:
print('[ %s ]' % xpath)
res = search(apiurl, request=xpath)
collection = res['request']
@ -4414,7 +4414,7 @@ def get_exact_request_list(apiurl, src_project, dst_project, src_package=None, d
if req_type:
xpath += " and action/@type=\'%s\'" % req_type
if conf.config['verbose']:
if conf.config['debug']:
print('[ %s ]' % xpath)
res = search(apiurl, request=xpath)
@ -4453,7 +4453,7 @@ def get_request_list(apiurl, project='', package='', req_who='', req_state=('new
for i in exclude_target_projects:
xpath = xpath_join(xpath, '(not(action/target/@project=\'%(prj)s\'))' % {'prj': i}, op='and')
if conf.config['verbose']:
if conf.config['debug']:
print('[ %s ]' % xpath)
queries = {}
if withfullhistory: