diff --git a/aio/src/app/shared/logger.service.ts b/aio/src/app/shared/logger.service.ts index 900de146c1..99f1a55812 100644 --- a/aio/src/app/shared/logger.service.ts +++ b/aio/src/app/shared/logger.service.ts @@ -1,10 +1,14 @@ import { Injectable } from '@angular/core'; +import { environment } from '../../environments/environment'; + @Injectable() export class Logger { log(value: any, ...rest) { - console.log(value, ...rest); + if (!environment.production) { + console.log(value, ...rest); + } } error(value: any, ...rest) {