mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
more logging about command status
This commit is contained in:
parent
db2bf1c2ce
commit
43172df402
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ class RepoMan:
|
|||
if status == 0 and callbacks:
|
||||
for cb in callbacks:
|
||||
cb()
|
||||
logging.info('previous command done.')
|
||||
else:
|
||||
logging.warn('previous command failed with status code %d.', status)
|
||||
self.run_command()
|
||||
|
||||
def _do_cmd(self, cmd, items, callbacks):
|
||||
|
|
Loading…
Add table
Reference in a new issue