From b5c9699e2c6a3f807682c8adf98ed0b133fb681e Mon Sep 17 00:00:00 2001 From: Spencer Ofwiti Date: Sun, 21 Mar 2021 14:04:21 +0300 Subject: [PATCH] Refactor .env-example. --- .env.example | 3 ++- set-env.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 28b6803..fc403b1 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,6 @@ +# Logging levels => TRACE = 0|DEBUG = 1|INFO = 2|LOG = 3|WARN = 4|ERROR = 5|FATAL = 6|OFF = 7 LOG_LEVEL= -SERVER_LEVEL= +SERVER_LOG_LEVEL= CIC_CHAIN_ID= CIC_LOGGING_URL= CIC_META_URL= diff --git a/set-env.ts b/set-env.ts index ddafca7..52e1fa0 100644 --- a/set-env.ts +++ b/set-env.ts @@ -14,7 +14,7 @@ export const environment = { production: ${isProduction}, bloxbergChainId: ${process.env.CIC_CHAIN_ID || 8996}, level: ${process.env.LOG_LEVEL || 'NgxLoggerLevel.OFF'}, - serverLogLevel: ${process.env.SERVER_LEVEL || 'NgxLoggerLevel.OFF'}, + serverLogLevel: ${process.env.SERVER_LOG_LEVEL || 'NgxLoggerLevel.OFF'}, loggingUrl: '${process.env.CIC_LOGGING_URL || 'http://localhost:8000'}', cicMetaUrl: '${process.env.CIC_META_URL || 'https://meta.dev.grassrootseconomics.net'}', publicKeysUrl: '${process.env.CIC_KEYS_URL || 'http://localhost:8000/keys.asc'}',