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'