Skip to content

Commit ef52f7b

Browse files
committed
Lower logging levels for some messages
This will allow us to bump the default level to INFO in a future patch so we can get output when we need it. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent a7741fe commit ef52f7b

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

git_pw/bundle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def apply_cmd(bundle_id, args):
2222
2323
Apply a bundle locally using the 'git-am' command.
2424
"""
25-
LOG.info('Applying bundle: id=%d', bundle_id)
25+
LOG.debug('Applying bundle: id=%d', bundle_id)
2626

2727
bundle = api.detail('bundles', bundle_id)
2828
mbox = api.download(bundle['mbox']).text
@@ -37,7 +37,7 @@ def download_cmd(bundle_id):
3737
3838
Download a bundle but do not apply it.
3939
"""
40-
LOG.info('Downloading bundle: id=%d', bundle_id)
40+
LOG.debug('Downloading bundle: id=%d', bundle_id)
4141

4242
bundle = api.detail('bundles', bundle_id)
4343
output = api.get(bundle['mbox']).text
@@ -93,8 +93,8 @@ def list_cmd(owner, limit, page, sort, name):
9393
9494
List bundles on the Patchwork instance.
9595
"""
96-
LOG.info('List bundles: owners=%s, limit=%r, page=%r, sort=%r',
97-
','.join(owner), limit, page, sort)
96+
LOG.debug('List bundles: owners=%s, limit=%r, page=%r, sort=%r',
97+
','.join(owner), limit, page, sort)
9898

9999
params = []
100100

git_pw/patch.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def apply_cmd(patch_id, series, deps, args):
2828
2929
Apply a patch locally using the 'git-am' command.
3030
"""
31-
LOG.info('Applying patch: id=%d, series=%s, deps=%r, args=%s', patch_id,
32-
series, deps, ' '.join(args))
31+
LOG.debug('Applying patch: id=%d, series=%s, deps=%r, args=%s', patch_id,
32+
series, deps, ' '.join(args))
3333

3434
patch = api.detail('patches', patch_id)
3535

@@ -54,7 +54,7 @@ def download_cmd(patch_id, fmt):
5454
5555
Download a patch but do not apply it.
5656
"""
57-
LOG.info('Downloading patch: id=%d, format=%s', patch_id, fmt)
57+
LOG.debug('Downloading patch: id=%d, format=%s', patch_id, fmt)
5858

5959
patch = api.detail('patches', patch_id)
6060

@@ -127,8 +127,8 @@ def update_cmd(patch_ids, commit_ref, state, delegate, archived):
127127
require admin or maintainer permissions.
128128
"""
129129
for patch_id in patch_ids:
130-
LOG.info('Updating patch: id=%d, commit_ref=%s, state=%s, archived=%s',
131-
patch_id, commit_ref, state, archived)
130+
LOG.debug('Updating patch: id=%d, commit_ref=%s, state=%s, '
131+
'archived=%s', patch_id, commit_ref, state, archived)
132132

133133
if delegate:
134134
users = api.index('users', [('q', delegate)])
@@ -192,9 +192,9 @@ def list_cmd(state, submitter, delegate, archived, limit, page, sort, name):
192192
193193
List patches on the Patchwork instance.
194194
"""
195-
LOG.info('List patches: states=%s, submitters=%s, delegates=%s, '
196-
'archived=%r', ','.join(state), ','.join(submitter),
197-
','.join(delegate), archived)
195+
LOG.debug('List patches: states=%s, submitters=%s, delegates=%s, '
196+
'archived=%r', ','.join(state), ','.join(submitter),
197+
','.join(delegate), archived)
198198

199199
params = []
200200

git_pw/series.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def apply_cmd(series_id, args):
2323
2424
Apply a series locally using the 'git-am' command.
2525
"""
26-
LOG.info('Applying series: id=%d, args=%s', series_id, ' '.join(args))
26+
LOG.debug('Applying series: id=%d, args=%s', series_id, ' '.join(args))
2727

2828
series = api.detail('series', series_id)
2929
mbox = api.download(series['mbox'])
@@ -38,7 +38,7 @@ def download_cmd(series_id):
3838
3939
Download a series but do not apply it.
4040
"""
41-
LOG.info('Downloading series: id=%d', series_id)
41+
LOG.debug('Downloading series: id=%d', series_id)
4242

4343
series = api.detail('series', series_id)
4444
output = api.get(series['mbox']).text
@@ -101,8 +101,8 @@ def list_cmd(submitter, limit, page, sort, name):
101101
102102
List series on the Patchwork instance.
103103
"""
104-
LOG.info('List series: submitters=%s, limit=%r, page=%r, sort=%r',
105-
','.join(submitter), limit, page, sort)
104+
LOG.debug('List series: submitters=%s, limit=%r, page=%r, sort=%r',
105+
','.join(submitter), limit, page, sort)
106106

107107
params = []
108108

0 commit comments

Comments
 (0)