diff --git a/docker/qgisserver/geomapfish_qgisserver/gmf_logging.py b/docker/qgisserver/geomapfish_qgisserver/gmf_logging.py index eedfbb94502..ce35540e500 100644 --- a/docker/qgisserver/geomapfish_qgisserver/gmf_logging.py +++ b/docker/qgisserver/geomapfish_qgisserver/gmf_logging.py @@ -7,7 +7,7 @@ import logging.config import os -from typing import IO, Any +from typing import Any, Optional, TextIO import c2cwsgiutils.pyramid_logging import qgis.server @@ -66,7 +66,7 @@ class JsonLogHandler(c2cwsgiutils.pyramid_logging.JsonLogHandler): Log to stdout in JSON. """ - def __init__(self, stream: IO[str]) -> None: + def __init__(self, stream: Optional[TextIO] = None) -> None: super().__init__(stream) self.addFilter(_REQUEST_FILTER)