fix(backup): logger, not log
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 15s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 13s

This commit is contained in:
Seaswimmer 2024-01-31 14:22:46 -05:00
parent fdb5d323eb
commit 6dfeb97180
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -116,7 +116,7 @@ class Backup(commands.Cog):
# Rather, it is only in the development version and will be added in version 3.5.6 (or whatever the next version is). # Rather, it is only in the development version and will be added in version 3.5.6 (or whatever the next version is).
# except errors.AuthenticationError as err: # except errors.AuthenticationError as err:
# repo_e.append(f"Authentication error while adding repository {name}. See logs for more information.") # repo_e.append(f"Authentication error while adding repository {name}. See logs for more information.")
# self.log.exception( # self.logger.exception(
# "Something went wrong whilst cloning %s (to revision %s)", # "Something went wrong whilst cloning %s (to revision %s)",
# url, # url,
# branch, # branch,
@ -126,7 +126,7 @@ class Backup(commands.Cog):
except errors.CloningError as err: except errors.CloningError as err:
repo_e.append(f"Cloning error while adding repository {name}. See logs for more information.") repo_e.append(f"Cloning error while adding repository {name}. See logs for more information.")
self.log.exception( self.logger.exception(
"Something went wrong whilst cloning %s (to revision %s)", "Something went wrong whilst cloning %s (to revision %s)",
url, url,
branch, branch,
@ -136,7 +136,7 @@ class Backup(commands.Cog):
except OSError: except OSError:
repo_e.append(f"OS error while adding repository {name}. See logs for more information.") repo_e.append(f"OS error while adding repository {name}. See logs for more information.")
self.log.exception( self.logger.exception(
"Something went wrong trying to add repo %s under name %s", "Something went wrong trying to add repo %s under name %s",
url, url,
name name