summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2020-06-18 12:45:08 -0400
committerbrent s <bts@square-r00t.net>2020-06-18 12:45:08 -0400
commitac1886e46b24f1db612070e9414e566c1d919fb0 (patch)
tree773ad90b2c6caed5ed9274ef9a710a7ad093469e
parent1a5068d77d73810938a34e23fadf3e3794c422fc (diff)
downloadRepoMirror-ac1886e46b24f1db612070e9414e566c1d919fb0.tar.xz
better rsync logging
-rw-r--r--repomirror/fetcher/rsync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/repomirror/fetcher/rsync.py b/repomirror/fetcher/rsync.py
index 3ec3b74..dd87cc1 100644
--- a/repomirror/fetcher/rsync.py
+++ b/repomirror/fetcher/rsync.py
@@ -72,7 +72,7 @@ class RSync(_base.BaseFetcher):
if stderr != '' or cmd.returncode != 0:
_logger.error('Rsync to {0}:{1} returned exit status {2}'.format(self.domain, self.port, cmd.returncode))
_logger.debug('STDERR: {0}'.format(stderr))
- warnings.warn('Rsync process returned non-zero')
+ warnings.warn('Rsync process returned non-zero ({0}) for {1}'.format(cmd.returncode, ' '.join(cmd_str)))
return(None)
def fetch_content(self, remote_filepath):
@@ -93,7 +93,7 @@ class RSync(_base.BaseFetcher):
if stderr != '' or cmd.returncode != 0:
_logger.error('Rsync to {0}:{1} returned exit status {2}'.format(self.domain, self.port, cmd.returncode))
_logger.debug('STDERR: {0}'.format(stderr))
- warnings.warn('Rsync process returned non-zero')
+ warnings.warn('Rsync process returned non-zero ({0}) for {1}'.format(cmd.returncode, ' '.join(cmd_str)))
with open(tf, 'rb') as fh:
raw_content = fh.read()
os.remove(tf)