From e66293283a7cea9356f267fa0067aec90f2c16be Mon Sep 17 00:00:00 2001 From: Keepers Date: Tue, 5 Nov 2024 12:42:07 -0700 Subject: [PATCH] fix up import naming --- clog/builder.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/clog/builder.go b/clog/builder.go index d19119c..8e4224b 100644 --- a/clog/builder.go +++ b/clog/builder.go @@ -7,7 +7,6 @@ import ( "github.com/alcionai/clues" "github.com/alcionai/clues/internal/stringify" - "go.opentelemetry.io/otel/log" otellog "go.opentelemetry.io/otel/log" "go.uber.org/zap" "golang.org/x/exp/maps" @@ -62,8 +61,8 @@ func (b builder) log(l logLevel, msg string) { // set up an otel logging record // if otelLog is nil, this will eventually no-op - record := log.Record{} - record.SetBody(log.StringValue(msg)) + record := otellog.Record{} + record.SetBody(otellog.StringValue(msg)) record.SetSeverity(convertLevel(l)) if b.err != nil { @@ -123,14 +122,14 @@ func (b builder) log(l logLevel, msg string) { } // add otel logging if provided - otelLog := b.otel + otelLogger := b.otel - if otelLog == nil { - otelLog = cluesNode.OTELLogger() + if otelLogger == nil { + otelLogger = cluesNode.OTELLogger() } - if otelLog != nil { - otelLog.Emit(b.ctx, record) + if otelLogger != nil { + otelLogger.Emit(b.ctx, record) } }