forked from cswimr/SeaCogs
fix(backup): logger, not log
This commit is contained in:
parent
fdb5d323eb
commit
6dfeb97180
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue