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 May 16, 2022
1 parent 48323cc commit 36316d7
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 Any, Optional, TextIO

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[TextIO] = None) -> None:
super().__init__(stream)
self.addFilter(_REQUEST_FILTER)

Expand Down

0 comments on commit 36316d7

Please sign in to comment.