Skip to content

Commit

Permalink
Json handler stream is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Mar 9, 2022
1 parent 46a07a2 commit fed6a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/qgisserver/geomapfish_qgisserver/gmf_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit fed6a48

Please sign in to comment.