From bfc6d6309009692ef39822c0acc6745af32b29c0 Mon Sep 17 00:00:00 2001 From: Spencer Ofwiti Date: Wed, 24 Mar 2021 10:43:07 +0300 Subject: [PATCH] Refactor environment variable names. --- set-env.ts | 2 +- src/app/app.module.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/set-env.ts b/set-env.ts index e9b558b..fce0e37 100644 --- a/set-env.ts +++ b/set-env.ts @@ -13,7 +13,7 @@ const environmentVars = `import {NgxLoggerLevel} from 'ngx-logger'; export const environment = { production: ${isProduction}, bloxbergChainId: ${process.env.CIC_CHAIN_ID || 8996}, - level: ${process.env.LOG_LEVEL || 'NgxLoggerLevel.ERROR'}, + logLevel: ${process.env.LOG_LEVEL || 'NgxLoggerLevel.ERROR'}, 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'}', diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 45b735b..ce0249b 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -31,7 +31,7 @@ import {MutablePgpKeyStore} from '@app/_pgp'; SharedModule, MatTableModule, LoggerModule.forRoot({ - level: environment.level, + level: environment.logLevel, serverLogLevel: environment.serverLogLevel, serverLoggingUrl: `${environment.loggingUrl}/api/logs/`, disableConsoleLogging: false @@ -45,7 +45,7 @@ import {MutablePgpKeyStore} from '@app/_pgp'; { provide: ErrorHandler, useClass: GlobalErrorHandler }, { provide: HTTP_INTERCEPTORS, useClass: HttpConfigInterceptor, multi: true }, { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }, - // { provide: HTTP_INTERCEPTORS, useClass: LoggingInterceptor, multi: true }, + { provide: HTTP_INTERCEPTORS, useClass: LoggingInterceptor, multi: true }, ], bootstrap: [AppComponent] })