File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,6 @@ class Channel implements Channel {
187187 } )
188188 // update the current stepId on startup
189189 vscode . commands . executeCommand ( COMMANDS . SET_CURRENT_STEP , action . payload )
190- logger ( 'Continue tutorial setup' )
191190 return
192191 case 'EDITOR_VALIDATE_SETUP' :
193192 // check workspace is selected
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ export type Env = 'test' | 'local' | 'development' | 'production'
1414export const NODE_ENV : Env = process . env . NODE_ENV || 'production'
1515
1616// 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'
1918
2019// error logging tool
2120export 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) {
99export const DEBUG : boolean = ( process . env . REACT_APP_DEBUG || '' ) . toLowerCase ( ) === 'true'
1010export const VERSION : string = process . env . VERSION || 'unknown'
1111export 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'
1413export const TUTORIAL_LIST_URL : string = process . env . REACT_APP_TUTORIAL_LIST_URL || ''
1514export 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'
22
33export type Log = string | object
44
@@ -17,4 +17,11 @@ const logger = (...messages: Log[]): void => {
1717 }
1818}
1919
20+ logger ( `
21+ ENV
22+ ---
23+ VERSION: ${ VERSION }
24+ NODE_ENV: ${ NODE_ENV }
25+ ` )
26+
2027export default logger
You can’t perform that action at this time.
0 commit comments