From 1ea1c06d91c8e2ed99eb501562178432424b571a Mon Sep 17 00:00:00 2001 From: Sean Hagstrom Date: Wed, 7 Aug 2024 10:12:21 +0100 Subject: [PATCH] chore: forward runtime log-level during login/startup of the status-node --- src/status_im/contexts/profile/config.cljs | 46 +++++++++++----------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/src/status_im/contexts/profile/config.cljs b/src/status_im/contexts/profile/config.cljs index 10c8971ac6..d1d45d9ee2 100644 --- a/src/status_im/contexts/profile/config.cljs +++ b/src/status_im/contexts/profile/config.cljs @@ -8,28 +8,30 @@ (defn login [] - {;; Temporary fix until https://github.com/status-im/status-go/issues/3024 is resolved - :wakuV2Nameserver "8.8.8.8" - :statusProxyEnabled config/status-proxy-enabled? - :statusProxyStageName config/status-proxy-stage-name - :statusProxyMarketUser config/STATUS_BUILD_PROXY_USER - :statusProxyMarketPassword config/STATUS_BUILD_PROXY_PASSWORD - :statusProxyBlockchainUser config/STATUS_BUILD_PROXY_USER - :statusProxyBlockchainPassword config/STATUS_BUILD_PROXY_PASSWORD - :openseaAPIKey config/opensea-api-key - :poktToken config/POKT_TOKEN - :infuraToken config/INFURA_TOKEN - :raribleMainnetAPIKey config/RARIBLE_MAINNET_API_KEY - :raribleTestnetAPIKey config/RARIBLE_TESTNET_API_KEY - :alchemyEthereumMainnetToken config/ALCHEMY_ETHEREUM_MAINNET_TOKEN - :alchemyEthereumGoerliToken config/ALCHEMY_ETHEREUM_GOERLI_TOKEN - :alchemyEthereumSepoliaToken config/ALCHEMY_ETHEREUM_SEPOLIA_TOKEN - :alchemyOptimismMainnetToken config/ALCHEMY_OPTIMISM_MAINNET_TOKEN - :alchemyOptimismGoerliToken config/ALCHEMY_OPTIMISM_GOERLI_TOKEN - :alchemyOptimismSepoliaToken config/ALCHEMY_OPTIMISM_SEPOLIA_TOKEN - :alchemyArbitrumMainnetToken config/ALCHEMY_ARBITRUM_MAINNET_TOKEN - :alchemyArbitrumGoerliToken config/ALCHEMY_ARBITRUM_GOERLI_TOKEN - :alchemyArbitrumSepoliaToken config/ALCHEMY_ARBITRUM_SEPOLIA_TOKEN}) + (let [log-enabled? (boolean (not-empty config/log-level))] + {;; Temporary fix until https://github.com/status-im/status-go/issues/3024 is resolved + :wakuV2Nameserver "8.8.8.8" + :runtimeLogLevel (when log-enabled? config/log-level) + :statusProxyEnabled config/status-proxy-enabled? + :statusProxyStageName config/status-proxy-stage-name + :statusProxyMarketUser config/STATUS_BUILD_PROXY_USER + :statusProxyMarketPassword config/STATUS_BUILD_PROXY_PASSWORD + :statusProxyBlockchainUser config/STATUS_BUILD_PROXY_USER + :statusProxyBlockchainPassword config/STATUS_BUILD_PROXY_PASSWORD + :openseaAPIKey config/opensea-api-key + :poktToken config/POKT_TOKEN + :infuraToken config/INFURA_TOKEN + :raribleMainnetAPIKey config/RARIBLE_MAINNET_API_KEY + :raribleTestnetAPIKey config/RARIBLE_TESTNET_API_KEY + :alchemyEthereumMainnetToken config/ALCHEMY_ETHEREUM_MAINNET_TOKEN + :alchemyEthereumGoerliToken config/ALCHEMY_ETHEREUM_GOERLI_TOKEN + :alchemyEthereumSepoliaToken config/ALCHEMY_ETHEREUM_SEPOLIA_TOKEN + :alchemyOptimismMainnetToken config/ALCHEMY_OPTIMISM_MAINNET_TOKEN + :alchemyOptimismGoerliToken config/ALCHEMY_OPTIMISM_GOERLI_TOKEN + :alchemyOptimismSepoliaToken config/ALCHEMY_OPTIMISM_SEPOLIA_TOKEN + :alchemyArbitrumMainnetToken config/ALCHEMY_ARBITRUM_MAINNET_TOKEN + :alchemyArbitrumGoerliToken config/ALCHEMY_ARBITRUM_GOERLI_TOKEN + :alchemyArbitrumSepoliaToken config/ALCHEMY_ARBITRUM_SEPOLIA_TOKEN})) (defn create []