Skip to content

Commit 6fd1fcd

Browse files
committed
Remove superfluous code.
twiggy.Logger.trace() returns a clone with adjusted options. Not using the return value simply does nothing.
1 parent ec84c09 commit 6fd1fcd

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/antsibull_core/logging.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,6 @@ def error(self, format_spec: str, *args, **kwargs) -> None:
302302
def critical(self, format_spec: str, *args, **kwargs) -> None:
303303
self.logger.critical(format_spec, *args, **kwargs)
304304

305-
def trace(self) -> None:
306-
self.logger.trace()
307-
308305
def fields(self, **kwargs) -> Logger:
309306
return TwiggyLogger(self.logger.fields(**kwargs))
310307

src/antsibull_core/utils/http.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,9 @@ async def __aenter__(self) -> aiohttp.ClientResponse:
7373
status = str(status_code)
7474
response.close()
7575
except _AsyncIoTimeoutError:
76-
flog.trace()
7776
status = "timeout"
7877
wait_factor = 0.5
7978
except Exception as error: # pylint:disable=broad-except
80-
flog.trace()
8179
status = str(error)
8280

8381
errors.append(status)

0 commit comments

Comments
 (0)