1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-12-02 05:57:21 +01:00

Merge pull request #322 from oceanprotocol/remove-debug-logs-from-aqua

Removed aquarius debug logs.
This commit is contained in:
Alex Coseru 2022-09-23 19:51:01 +03:00 committed by GitHub
commit d455c6df90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 3 deletions

View File

@ -95,6 +95,24 @@ export AQUARIUS_VERSION=v2.0.0
./start_ocean.sh
```
### Log levels
You can specify what type of logs barge should display for `Aquarius`, `Provider` or `Subgraph`
by exporting the following environment variables.
- `AQUARIUS_LOG_LEVEL`
- `PROVIDER_LOG_LEVEL`
- `SUBGRAPH_LOG_LEVEL`
Currently, they are all set to `INFO`.
For example:
```bash
export AQUARIUS_LOG_LEVEL=DEBUG
./start_ocean.sh
```
### All Options
| Option | Description |

View File

@ -21,7 +21,7 @@ services:
DB_CA_CERTS: ${DB_CA_CERTS}
DB_CLIENT_KEY: ${DB_CLIENT_KEY}
DB_CLIENT_CERT: ${DB_CLIENT_CERT}
LOG_LEVEL: DEBUG
LOG_LEVEL: ${AQUARIUS_LOG_LEVEL}
PRIVATE_KEY: "0x5d75837394b078ce97bc289fa8d75e21000573520bfa7784a9d28ccaae602bf8"
ARTIFACTS_PATH: "/ocean-contracts/artifacts"
ADDRESS_FILE: "/ocean-contracts/artifacts/address.json"

View File

@ -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: ${SUBGRAPH_LOG_LEVEL}
postgres:
image: postgres
ports:

View File

@ -43,6 +43,12 @@ export WAIT_FOR_C2DIMAGES=${WAIT_FOR_C2DIMAGES:-false}
export PROJECT_NAME="ocean"
export FORCEPULL="false"
# Export LOG LEVEL
export AQUARIUS_LOG_LEVEL=${AQUARIUS_LOG_LEVEL:-INFO}
export PROVIDER_LOG_LEVEL=${PROVIDER_LOG_LEVEL:-INFO}
export SUBGRAPH_LOG_LEVEL=${SUBGRAPH_LOG_LEVEL:-info}
# Export User UID and GID
export LOCAL_USER_ID=$(id -u)
export LOCAL_GROUP_ID=$(id -g)
@ -95,7 +101,6 @@ CHECK_ELASTIC_VM_COUNT=true
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 PROVIDER_WORKERS=10
export PROVIDER_IPFS_GATEWAY=https://ipfs.oceanprotocol.com
export PROVIDER_PRIVATE_KEY=0xfd5c1ccea015b6d663618850824154a3b3fb2882c46cefb05b9a93fea8c3d215