Skip to content

Commit 7b20dbd

Browse files
authored
Merge pull request #1767 from pbiering/log-PYTHONPATH-on-start-if-given
Log pythonpath on start if given
2 parents fef157b + 9bbfcdc commit 7b20dbd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Fix: use value of property for time range filter
66
* Add: [auth] ldap: option ldap_security (none, startls, tls) for additional support of STARTTLS, deprecate ldap_use_ssl
77
* Fix: return 204 instead of 201 in case PUT updates an item
8+
* Extend: log PYTHONPATH on startup if found in environment
89

910
## 3.5.1
1011

radicale/server.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"""
2525

2626
import http
27+
import os
2728
import select
2829
import socket
2930
import socketserver
@@ -292,7 +293,11 @@ def serve(configuration: config.Configuration,
292293
293294
"""
294295

295-
logger.info("Starting Radicale (%s)", utils.packages_version())
296+
if os.environ.get("PYTHONPATH"):
297+
info = "with PYTHONPATH=%r " % os.environ.get("PYTHONPATH")
298+
else:
299+
info = ""
300+
logger.info("Starting Radicale %s(%s)", info, utils.packages_version())
296301
# Copy configuration before modifying
297302
configuration = configuration.copy()
298303
configuration.update({"server": {"_internal_server": "True"}}, "server",

0 commit comments

Comments
 (0)