Skip to content

Commit a2dd8be

Browse files
#358 introduced log neon cli debug env variable to add ' vvv' param in a command line of neon cli (#359)
* Introduced LOG_NEON_CLI_DEBUG env variable to add '-vvv' param in a command line of neon-cli "NO" - default value "YES" - set only for CI-tests * ()
1 parent 32bff11 commit a2dd8be

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

proxy/docker-compose-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ services:
6666
POSTGRES_PASSWORD: neon-proxy-pass
6767
NEW_USER_AIRDROP_AMOUNT: 100
6868
LOG_SENDING_SOLANA_TRANSACTION: "YES"
69+
LOG_NEON_CLI_DEBUG: "YES"
6970
CONFIG: ci
7071
hostname: proxy
7172
depends_on:

proxy/environment.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
MINIMAL_GAS_PRICE=int(os.environ.get("MINIMAL_GAS_PRICE", 1))*10**9
1818
EXTRA_GAS = int(os.environ.get("EXTRA_GAS", "0"))
1919
LOG_SENDING_SOLANA_TRANSACTION = os.environ.get("LOG_SENDING_SOLANA_TRANSACTION", "NO") == "YES"
20+
LOG_NEON_CLI_DEBUG = os.environ.get("LOG_NEON_CLI_DEBUG", "NO") == "YES"
2021

2122
class solana_cli:
2223
def call(self, *args):
@@ -38,7 +39,9 @@ def call(self, *args):
3839
"--commitment=recent",
3940
"--url", SOLANA_URL,
4041
"--evm_loader={}".format(EVM_LOADER_ID),
41-
] + list(args)
42+
]\
43+
+ (["-vvv"] if LOG_NEON_CLI_DEBUG else [])\
44+
+ list(args)
4245
logger.debug("Calling: " + " ".join(cmd))
4346
return subprocess.check_output(cmd, timeout=neon_cli_timeout, universal_newlines=True)
4447
except subprocess.CalledProcessError as err:

0 commit comments

Comments
 (0)