mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
log PYTHONPATH on startup if found in environment
This commit is contained in:
parent
fef157bb50
commit
3cc790a9a3
1 changed files with 6 additions and 1 deletions
|
@ -24,6 +24,7 @@ Built-in WSGI server.
|
|||
"""
|
||||
|
||||
import http
|
||||
import os
|
||||
import select
|
||||
import socket
|
||||
import socketserver
|
||||
|
@ -292,7 +293,11 @@ def serve(configuration: config.Configuration,
|
|||
|
||||
"""
|
||||
|
||||
logger.info("Starting Radicale (%s)", utils.packages_version())
|
||||
if os.environ.get("PYTHONPATH"):
|
||||
info = "with PYTHONPATH=%r " % os.environ.get("PYTHONPATH")
|
||||
else:
|
||||
info = ""
|
||||
logger.info("Starting Radicale %s(%s)", info, utils.packages_version())
|
||||
# Copy configuration before modifying
|
||||
configuration = configuration.copy()
|
||||
configuration.update({"server": {"_internal_server": "True"}}, "server",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue