Skip to content

Commit

Permalink
Logging: reduce verbosity (readthedocs#9107)
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos authored Apr 13, 2022
1 parent ccdad23 commit 853f3fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion readthedocs/doc_builder/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,10 @@ def __exit__(self, exc_type, exc_value, tb):
container_id=self.container_id,
)
except DockerAPIError:
log.exception(
# Logging this as warning because it usually happens due memory
# limit or build timeout. In those cases, the container is not
# running and can't be killed
log.warning(
'Unable to kill container.',
container_id=self.container_id,
)
Expand Down
1 change: 0 additions & 1 deletion readthedocs/projects/tasks/builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def on_failure(self, exc, task_id, args, kwargs, einfo):
if isinstance(exc, RepositoryError):
log.warning(
'There was an error with the repository.',
exc_info=True,
)
elif isinstance(exc, SyncRepositoryLocked):
log.warning(
Expand Down

0 comments on commit 853f3fc

Please sign in to comment.