diff --git a/CHANGELOG.md b/CHANGELOG.md index d128fef5..8ac22a47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/radicale/server.py b/radicale/server.py index c07c4809..ac2ef284 100644 --- a/radicale/server.py +++ b/radicale/server.py @@ -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",