Skip to content

Commit

Permalink
#I250: Moved the file from otel to services
Browse files Browse the repository at this point in the history
  • Loading branch information
Manjunath authored and Manjunath committed Nov 28, 2024
1 parent af3b8d4 commit 4ad396b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-service/src/services/otel/OTelService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class OTelService {


public static generateOTelLog(auditLog: Record<string, any>, 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<string, number> = {
Expand Down

0 comments on commit 4ad396b

Please sign in to comment.