1 Commits

Author SHA1 Message Date
3fb4985ea4 feat: add parameter for set log verbosity and json format (#10)
## What 
Logs in json format and option for set verbosity level for rust 

## Why 
It can be useful for specify verbose level.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Documentation comments have been added / updated.
2024-03-20 14:55:06 +02:00
2 changed files with 3 additions and 1 deletions

View File

@ -80,6 +80,7 @@ rpc_http_port: 3060
rpc_ws_port: 3061
healthcheck_port: 3081
metrics_port: 3082
log_verbosity: info
# Monitoring options section
enable_monitoring: false

View File

@ -90,7 +90,8 @@ services:
CHAIN_STATE_KEEPER_VALIDATION_COMPUTATIONAL_GAS_LIMIT: 2000000
DATABASE_POOL_SIZE: 200
EN_MAX_BLOCKS_PER_TREE_BATCH: 200
RUST_LOG: zksync_core=debug,zksync_dal=info,zksync_eth_client=info,zksync_merkle_tree=info,zksync_storage=info,zksync_state=debug,zksync_types=info,vm=info,zksync_external_node=info,zksync_utils=debug
MISC_LOG_FORMAT: json
RUST_LOG: zksync_external_node={{ log_verbosity }}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:{{ healthcheck_port }}/health" ]
interval: 1m