Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change logging format to JSON #162

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/.env.mainnet.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ SYNC_EVENT_PROVIDER_SNAPSHOT_TYPE="pruned"

# Logging Env #
LOG_LEVEL="info"
LOG_FORMAT="json"
LOG_BUGSNAG_KEY=
LOG_BUGSNAG_ENABLED=false

Expand Down
1 change: 1 addition & 0 deletions docker/.env.testnet.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ SYNC_EVENT_PROVIDER_SNAPSHOT="true"

# Logging Env #
LOG_LEVEL="info"
LOG_FORMAT="json"
LOG_BUGSNAG_KEY=
LOG_BUGSNAG_ENABLED=false

Expand Down
7 changes: 7 additions & 0 deletions docker/addons/docker-compose.dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
#${LOG_LEVEL}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
Expand Down Expand Up @@ -89,6 +90,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
# bugsnag
Expand Down Expand Up @@ -147,6 +149,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
# bugsnag
Expand Down Expand Up @@ -215,6 +218,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
# bugsnag
Expand Down Expand Up @@ -271,6 +275,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
# bugsnag
Expand Down Expand Up @@ -333,6 +338,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
# bugsnag
Expand Down Expand Up @@ -391,6 +397,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
# bugsnag
Expand Down
3 changes: 3 additions & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
kalvkusk marked this conversation as resolved.
Show resolved Hide resolved
# bugsnag
Expand Down Expand Up @@ -163,6 +164,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
# bugsnag
Expand Down Expand Up @@ -250,6 +252,7 @@ services:
environment:
# universal
INDEXER_LOG_LEVEL: ${LOG_LEVEL}
INDEXER_LOG_FORMAT: ${LOG_FORMAT}
INDEXER_ENV: ${APP_ENV}
INDEXER_SERVICE_WAIT_TIMEOUTEVEL: 1m
# bugsnag
Expand Down