Skip to content

Commit 853f3fc

Browse files
authored
Logging: reduce verbosity (#9107)
1 parent ccdad23 commit 853f3fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

readthedocs/doc_builder/environments.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,10 @@ def __exit__(self, exc_type, exc_value, tb):
646646
container_id=self.container_id,
647647
)
648648
except DockerAPIError:
649-
log.exception(
649+
# Logging this as warning because it usually happens due memory
650+
# limit or build timeout. In those cases, the container is not
651+
# running and can't be killed
652+
log.warning(
650653
'Unable to kill container.',
651654
container_id=self.container_id,
652655
)

readthedocs/projects/tasks/builds.py

-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def on_failure(self, exc, task_id, args, kwargs, einfo):
136136
if isinstance(exc, RepositoryError):
137137
log.warning(
138138
'There was an error with the repository.',
139-
exc_info=True,
140139
)
141140
elif isinstance(exc, SyncRepositoryLocked):
142141
log.warning(

0 commit comments

Comments
 (0)