Skip to content

Commit 80a43aa

Browse files
PROD-2145 more logging #time 5m
1 parent e672bb0 commit 80a43aa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src-ts/config/environments/environment.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { EnvironmentConfigProd } from './environment.prod.config'
88

99
function getEnvironmentConfig(): GlobalConfig {
1010

11-
console.debug(process.env.REACT_APP_HOST_ENV)
11+
console.debug('REACT_APP_HOST_ENV', process.env.REACT_APP_HOST_ENV)
1212
switch (process.env.REACT_APP_HOST_ENV) {
1313

1414
case AppHostEnvironment.bsouza:

src-ts/lib/functions/logging-functions/logging.functions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@ import { GlobalConfig } from '../../global-config.model'
44

55
export function initialize(config: GlobalConfig): void {
66

7+
console.debug('init logging', config.LOGGING)
8+
79
// if we don't have a token and service,
810
// logging isn't supported in this environment,
911
// so don't initialize anything
1012
if (!config.LOGGING?.PUBLIC_TOKEN || !config.LOGGING?.SERVICE) {
1113
return
1214
}
1315

16+
console.debug('logging env', config.ENV)
1417
datadogLogs.init({
1518
clientToken: config.LOGGING.PUBLIC_TOKEN,
1619
env: config.ENV,
1720
service: config.LOGGING.SERVICE,
1821
silentMultipleInit: true,
1922
})
2023

21-
info(`initialized logging for ${config.ENV}`)
24+
info(`initialized logging for ${config.ENV} test`)
2225
}
2326

2427
export function error(message: string, messageContext?: object): void {

0 commit comments

Comments
 (0)