File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ export type Env = 'test' | 'local' | 'development' | 'production'
14
14
export const NODE_ENV : Env = process . env . NODE_ENV || 'production'
15
15
16
16
// toggle logging in development
17
- export const LOG : boolean =
18
- ( process . env . REACT_APP_LOG || '' ) . toLowerCase ( ) === 'true' && process . env . NODE_ENV !== 'production'
17
+ export const LOG : boolean = ( process . env . REACT_APP_LOG || '' ) . toLowerCase ( ) === 'true'
19
18
20
19
// error logging tool
21
20
export const SENTRY_DSN : string | null = process . env . SENTRY_DSN || null
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ for (const required of requiredKeys) {
9
9
export const DEBUG : boolean = ( process . env . REACT_APP_DEBUG || '' ) . toLowerCase ( ) === 'true'
10
10
export const VERSION : string = process . env . VERSION || 'unknown'
11
11
export const NODE_ENV : string = process . env . NODE_ENV || 'development'
12
- export const LOG : boolean =
13
- ( process . env . REACT_APP_LOG || '' ) . toLowerCase ( ) === 'true' && process . env . NODE_ENV !== 'production'
12
+ export const LOG : boolean = ( process . env . REACT_APP_LOG || '' ) . toLowerCase ( ) === 'true'
14
13
export const TUTORIAL_LIST_URL : string = process . env . REACT_APP_TUTORIAL_LIST_URL || ''
15
14
export const SENTRY_DSN : string | null = process . env . REACT_APP_SENTRY_DSN || null
Original file line number Diff line number Diff line change 1
- import { LOG } from '../../environment'
1
+ import { LOG , VERSION , NODE_ENV } from '../../environment'
2
2
3
3
export type Log = string | object
4
4
@@ -17,4 +17,11 @@ const logger = (...messages: Log[]): void => {
17
17
}
18
18
}
19
19
20
+ logger ( `
21
+ ENV
22
+ ---
23
+ VERSION: ${ VERSION }
24
+ NODE_ENV: ${ NODE_ENV }
25
+ ` )
26
+
20
27
export default logger
You can’t perform that action at this time.
0 commit comments