better logging

This commit is contained in:
Aria Moradi
2024-02-19 02:21:32 +03:30
parent 532d5b9b9a
commit 7b013bb391

View File

@@ -249,7 +249,7 @@ fun applicationSetup() {
DataClassForDestruction(proxyEnabled, proxyHost, proxyPort, proxyUsername, proxyPassword)
},
{ (proxyEnabled, proxyHost, proxyPort, proxyUsername, proxyPassword) ->
logger.info("Socks Proxy changed - enabled= $proxyEnabled, proxy= $proxyHost:$proxyPort")
logger.info("Socks Proxy changed - enabled=$proxyEnabled address=$proxyHost:$proxyPort , username=$proxyUsername, password=[REDACTED]")
if (proxyEnabled) {
System.getProperties()["socksProxyHost"] = proxyHost
System.getProperties()["socksProxyPort"] = proxyPort