Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 38010d7

Browse files
committed
Switched log_info to log_warning in download_file
1 parent 27441b7 commit 38010d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/github-backup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,14 +582,14 @@ def download_file(url, path, auth):
582582
f.write(chunk)
583583
except HTTPError as exc:
584584
# Gracefully handle 404 responses (and others) when downloading from S3
585-
log_info('Skipping download of asset {0} due to HTTPError: {1}'.format(url, exc.reason))
585+
log_warning('Skipping download of asset {0} due to HTTPError: {1}'.format(url, exc.reason))
586586
except URLError as e:
587587
# Gracefully hadnle other URL errors
588-
log_info('Skipping download of asset {0} due to URLError: {1}'.format(url, e.reason))
588+
log_warning('Skipping download of asset {0} due to URLError: {1}'.format(url, e.reason))
589589
except socket.error as e:
590590
# Gracefully handle socket errors
591591
# TODO: Implement retry logic
592-
log_info('Skipping download of asset {0} due to socker error: {1}'.format(url, e.strerror))
592+
log_warning('Skipping download of asset {0} due to socker error: {1}'.format(url, e.strerror))
593593

594594

595595
def get_authenticated_user(args):

0 commit comments

Comments
 (0)