1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Merge pull request #1767 from pbiering/log-PYTHONPATH-on-start-if-given

Log pythonpath on start if given
This commit is contained in:
Peter Bieringer 2025-04-22 22:09:02 +02:00 committed by GitHub
commit 7b20dbda79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -5,6 +5,7 @@
* Fix: use value of property for time range filter
* Add: [auth] ldap: option ldap_security (none, startls, tls) for additional support of STARTTLS, deprecate ldap_use_ssl
* Fix: return 204 instead of 201 in case PUT updates an item
* Extend: log PYTHONPATH on startup if found in environment
## 3.5.1

View file

@ -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",