Skip to content

Commit

Permalink
Do not overwrite the logger config on app.run
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedc committed Nov 23, 2024
1 parent 67110bf commit 01eae1e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/quart/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,18 +912,17 @@ def run_task(
keyfile: Path to the SSL key file.
"""
config = HyperConfig()
config.access_log_format = "%(h)s %(r)s %(s)s %(b)s %(D)s"
config.accesslog = "-"
config.bind = [f"{host}:{port}"]
config.ca_certs = ca_certs
config.certfile = certfile
hconfig = HyperConfig()
hconfig.bind = [f"{host}:{port}"]
hconfig.ca_certs = ca_certs
hconfig.certfile = certfile
hconfig.keyfile = keyfile
if debug is not None:
self.debug = debug
config.errorlog = config.accesslog
config.keyfile = keyfile
hconfig.accesslog = self.logger
hconfig.errorlog = self.logger

return serve(self, config, shutdown_trigger=shutdown_trigger)
return serve(self, hconfig, shutdown_trigger=shutdown_trigger)

def test_client(
self, use_cookies: bool = True, **kwargs: Any
Expand Down

0 comments on commit 01eae1e

Please sign in to comment.