From 4ad396bf9fc81af219f6b140c8de7a4be63f0887 Mon Sep 17 00:00:00 2001 From: Manjunath Date: Thu, 28 Nov 2024 16:47:18 +0530 Subject: [PATCH] #I250: Moved the file from otel to services --- api-service/src/services/otel/OTelService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-service/src/services/otel/OTelService.ts b/api-service/src/services/otel/OTelService.ts index aa56425a..65186cbd 100644 --- a/api-service/src/services/otel/OTelService.ts +++ b/api-service/src/services/otel/OTelService.ts @@ -130,7 +130,7 @@ export class OTelService { public static generateOTelLog(auditLog: Record, severity: 'INFO' | 'WARN' | 'ERROR', logType?: string) { - if(config.otel && config.otel.enable){ + if((config.otel && _.toLower(config?.otel?.enable) === "true")){ const loggerInstance = this.loggerProvider.getLogger('obsrv-api-service'); const severityMapping: Record = {