From fed6a487b39416ed18fcdf8d5ddb08ab04500412 Mon Sep 17 00:00:00 2001 From: "arnaud.morvan@camptocamp.com" Date: Wed, 9 Mar 2022 17:34:16 +0100 Subject: [PATCH] Json handler stream is optional --- docker/qgisserver/geomapfish_qgisserver/gmf_logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)