diff --git a/docker/qgisserver/geomapfish_qgisserver/gmf_logging.py b/docker/qgisserver/geomapfish_qgisserver/gmf_logging.py index eedfbb94502..47c1f735353 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 IO, Any, Optional 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[IO[str]]=None) -> None: super().__init__(stream) self.addFilter(_REQUEST_FILTER)