diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2020-04-28 22:41:28 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2020-04-28 22:41:28 -0700 |
commit | a0841c139bd7830a56ad9e0dfb215148711a68c7 (patch) | |
tree | 2e908389d1b8fd78ce79193ecc2004eb6f85054a | |
parent | rsync: fix URL (diff) | |
download | gentoo-mirrorstats-a0841c139bd7830a56ad9e0dfb215148711a68c7.tar.gz gentoo-mirrorstats-a0841c139bd7830a56ad9e0dfb215148711a68c7.tar.bz2 gentoo-mirrorstats-a0841c139bd7830a56ad9e0dfb215148711a68c7.zip |
probe-mirmon: be quiet if rsync site is broken
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | probe-mirmon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/probe-mirmon b/probe-mirmon index ddd8546..8dce832 100755 --- a/probe-mirmon +++ b/probe-mirmon @@ -48,8 +48,8 @@ sub handle_rsync { $file =~ s/\W/_/g; # translate all non-letters to _ - if ( my $fail = system '/usr/bin/rsync', qw( --no-motd --timeout ), $timeout, $url, "$dir/$file" ) { - warn "rsync failed, exit code $fail, $! $? $@\n"; + if ( my $fail = system '/usr/bin/rsync', qw( -q --no-motd --timeout ), $timeout, $url, "$dir/$file" ) { + #warn "rsync failed, exit code $fail, $! $? $@\n"; exit $fail; } |