diff options
Diffstat (limited to 'ecomp-sdk/epsdk-app-os/ngappsrc/src')
3 files changed, 9 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts index a0f59731..df7495c6 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts @@ -29,5 +29,6 @@ export const environment = { getLeftMenu :'get_menu', removeRoleFunction:'role/removeRoleFunction.htm?role_id=', saveRole:'role/saveRole.htm?role_id=', - toggleProfileActive: 'profile/toggleProfileActive?profile_id=' + toggleProfileActive: 'profile/toggleProfileActive?profile_id=', + isLogDisabled:'true' }; diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts index 214c39df..f51d577d 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts @@ -33,7 +33,8 @@ export const environment = { getLeftMenu :'http://www.sdk.onap.org:8080/epsdk-app-os/get_menu', removeRoleFunction:'http://www.sdk.onap.org:8080/epsdk-app-os/role/removeRoleFunction.htm?role_id=', saveRole:'http://www.sdk.onap.org:8080/epsdk-app-os/role/saveRole.htm?role_id=', - toggleProfileActive: 'http://www.sdk.onap.org:8080/epsdk-app-os/profile/toggleProfileActive?profile_id=' + toggleProfileActive: 'http://www.sdk.onap.org:8080/epsdk-app-os/profile/toggleProfileActive?profile_id=', + isLogDisabled:'false' }; /* diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts index c7b673cf..a892a2e6 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts @@ -10,3 +10,8 @@ if (environment.production) { platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); + +console.log("isLogDisabled :: ",environment.isLogDisabled); +if (environment.isLogDisabled ==='true'){ + window['console']['log'] = function() {}; +}
\ No newline at end of file |