From fd0e0bc69ed81dac185044b1ea7f9d33d4dcf0f4 Mon Sep 17 00:00:00 2001 From: Tim Ross Date: Thu, 26 Dec 2024 10:35:28 -0500 Subject: [PATCH] remove unused logrus logger --- lib/service/service.go | 4 ---- lib/service/service_test.go | 2 -- 2 files changed, 6 deletions(-) diff --git a/lib/service/service.go b/lib/service/service.go index d08107116fb63..a65dc299486fe 100644 --- a/lib/service/service.go +++ b/lib/service/service.go @@ -631,9 +631,6 @@ type TeleportProcess struct { // during in-process reloads. id string - // log is a process-local logrus.Entry. - // Deprecated: use logger instead. - log logrus.FieldLogger // logger is a process-local slog.Logger. logger *slog.Logger @@ -1183,7 +1180,6 @@ func NewTeleport(cfg *servicecfg.Config) (*TeleportProcess, error) { storage: storage, rotationCache: rotationCache, id: processID, - log: cfg.Log, logger: cfg.Logger, cloudLabels: cloudLabels, TracingProvider: tracing.NoopProvider(), diff --git a/lib/service/service_test.go b/lib/service/service_test.go index d8c74ede46075..264a9c47c1281 100644 --- a/lib/service/service_test.go +++ b/lib/service/service_test.go @@ -518,7 +518,6 @@ func TestAthenaAuditLogSetup(t *testing.T) { exitContext: context.Background(), }, backend: backend, - log: utils.NewLoggerForTests(), logger: utils.NewSlogLoggerForTests(), } @@ -1299,7 +1298,6 @@ func TestProxyGRPCServers(t *testing.T) { }, }, }, - log: utils.NewLoggerForTests(), logger: utils.NewSlogLoggerForTests(), }