mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-06 08:28:03 +01:00
Merge pull request, while keeping -q --quiet flag.
Most changes were already included, only adjusted with black formatting.
This commit is contained in:
@@ -35,6 +35,11 @@ def main():
|
||||
if args.lfs_clone:
|
||||
check_git_lfs_install()
|
||||
|
||||
if args.log_level:
|
||||
log_level = logging.getLevelName(args.log_level.upper())
|
||||
if isinstance(log_level, int):
|
||||
logger.root.setLevel(log_level)
|
||||
|
||||
if not args.as_app:
|
||||
logger.info('Backing up user {0} to {1}'.format(args.user, output_directory))
|
||||
authenticated_user = get_authenticated_user(args)
|
||||
@@ -51,5 +56,5 @@ if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except Exception as e:
|
||||
logger.warning(str(e))
|
||||
logger.error(str(e))
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user