Skip to content

Commit

Permalink
Merge pull request #16 from onaio/correct-typo
Browse files Browse the repository at this point in the history
Correct env typo
  • Loading branch information
moshthepitt authored Feb 8, 2021
2 parents bed638f + 3d689a1 commit 2e48d41
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ EXPRESS_KEYCLOAK_LOGOUT_URL=https://keycloak-stage.smartregister.org/auth/realms

EXPRESS_MAXIMUM_LOGS_FILE_SIZE=5242880 # 5MB
EXPRESS_MAXIMUM_LOG_FILES_NUMBER=5
EXRESS_LOGS_FILE_PATH='/home/.express/reveal-express-server.log
EXPRESS_LOGS_FILE_PATH='/home/.express/reveal-express-server.log
2 changes: 1 addition & 1 deletion src/configs/__mocks__/envs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ export const EXPRESS_KEYCLOAK_LOGOUT_URL= 'https://keycloak-stage.smartregister.

export const EXPRESS_MAXIMUM_LOGS_FILE_SIZE = 5242880;
export const EXPRESS_MAXIMUM_LOG_FILES_NUMBER = 5;
export const EXRESS_LOGS_FILE_PATH = '/tmp/logs/reveal-express-server.log';
export const EXPRESS_LOGS_FILE_PATH = '/tmp/logs/reveal-express-server.log';
4 changes: 2 additions & 2 deletions src/configs/envs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ export type EXPRESS_MAXIMUM_LOGS_FILE_SIZE = typeof EXPRESS_MAXIMUM_LOGS_FILE_SI
export const EXPRESS_MAXIMUM_LOG_FILES_NUMBER = Number(process.env.EXPRESS_MAXIMUM_LOG_FILES_NUMBER || 5);
export type EXPRESS_MAXIMUM_LOG_FILES_NUMBER = typeof EXPRESS_MAXIMUM_LOG_FILES_NUMBER;

export const EXRESS_LOGS_FILE_PATH = process.env.EXRESS_LOGS_FILE_PATH || '/tmp/logs/reveal-express-server.log';
export type EXRESS_LOGS_FILE_PATH = typeof EXRESS_LOGS_FILE_PATH;
export const EXPRESS_LOGS_FILE_PATH = process.env.EXPRESS_LOGS_FILE_PATH || '/tmp/logs/reveal-express-server.log';
export type EXPRESS_LOGS_FILE_PATH = typeof EXPRESS_LOGS_FILE_PATH;
4 changes: 2 additions & 2 deletions src/configs/winston.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as winston from 'winston';
import { EXPRESS_MAXIMUM_LOGS_FILE_SIZE, EXPRESS_MAXIMUM_LOG_FILES_NUMBER, EXRESS_LOGS_FILE_PATH } from './envs';
import { EXPRESS_MAXIMUM_LOGS_FILE_SIZE, EXPRESS_MAXIMUM_LOG_FILES_NUMBER, EXPRESS_LOGS_FILE_PATH } from './envs';

// define the custom settings for each transport (file, console)
const options = {
file: {
level: 'info',
filename: EXRESS_LOGS_FILE_PATH,
filename: EXPRESS_LOGS_FILE_PATH,
handleExceptions: true,
json: true,
maxsize: EXPRESS_MAXIMUM_LOGS_FILE_SIZE,
Expand Down

0 comments on commit 2e48d41

Please sign in to comment.