github web-platform-tests/wpt merge_pr_46897

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
14 months ago

serve: Fix exception in logger usage

The Logger.critical method doesn't take a file argument, at least in Python 3.12:

import logging
logging.getLogger().critical('test', file=None)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib64/python3.12/logging/init.py", line 1586, in critical
self._log(CRITICAL, msg, args, **kwargs)
TypeError: Logger._log() got an unexpected keyword argument 'file'

Don't miss a new wpt release

NewReleases is sending notifications on new releases.