From b0bbed84be552031b0cc6de73fe98cdc94b103af Mon Sep 17 00:00:00 2001 From: Maria Carmina Date: Tue, 20 Sep 2022 23:29:15 +0300 Subject: [PATCH] Added INFO logging for subgraph. --- compose-files/thegraph.yml | 2 +- start_ocean.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compose-files/thegraph.yml b/compose-files/thegraph.yml index 1b8f6b9..d0428c2 100644 --- a/compose-files/thegraph.yml +++ b/compose-files/thegraph.yml @@ -22,7 +22,7 @@ services: postgres_db: graph-node ipfs: '172.15.0.16:5001' ethereum: 'development:${NETWORK_RPC_URL}' - RUST_LOG: info + RUST_LOG: ${RUST_LOG} postgres: image: postgres ports: diff --git a/start_ocean.sh b/start_ocean.sh index 722f4f0..1284caf 100755 --- a/start_ocean.sh +++ b/start_ocean.sh @@ -80,6 +80,7 @@ cp -r ./certs/* ${OCEAN_CERTS_FOLDER} export CONTRACTS_NETWORK_NAME="development" # Default Aquarius parameters: use Elasticsearch +export AQUARIUS_LOG_LEVEL=${AQUARIUS_LOG_LEVEL:-INFO} export DB_MODULE="elasticsearch" export DB_HOSTNAME="172.15.0.6" export DB_PORT="9200" @@ -96,7 +97,6 @@ export IPFS_GATEWAY=http://172.15.0.16:5001 export IPFS_HTTP_GATEWAY=http://172.15.0.16:8080/ipfs/ #Provider export PROVIDER_LOG_LEVEL=${PROVIDER_LOG_LEVEL:-INFO} -export AQUARIUS_LOG_LEVEL=${AQUARIUS_LOG_LEVEL:-INFO} export PROVIDER_WORKERS=10 export PROVIDER_IPFS_GATEWAY=https://ipfs.oceanprotocol.com export PROVIDER_PRIVATE_KEY=0xfd5c1ccea015b6d663618850824154a3b3fb2882c46cefb05b9a93fea8c3d215 @@ -234,6 +234,7 @@ while :; do printf $COLOR_Y'Starting without IPFS...\n\n'$COLOR_RESET ;; --with-thegraph) + export RUST_LOG=${RUST_LOG:-INFO} COMPOSE_FILES+=" -f ${COMPOSE_DIR}/thegraph.yml" printf $COLOR_Y'Starting with TheGraph...\n\n'$COLOR_RESET ;;