Skip to content

Commit

Permalink
Convert lib/auth/init to use slog
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy committed Dec 20, 2024
1 parent 6061a88 commit 6803bd7
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 64 deletions.
5 changes: 5 additions & 0 deletions lib/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import (
"github.com/gravitational/trace"
"github.com/jonboulle/clockwork"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace"
"golang.org/x/crypto/bcrypt"
"golang.org/x/crypto/ssh"
Expand Down Expand Up @@ -169,6 +170,10 @@ const (

var ErrRequiresEnterprise = services.ErrRequiresEnterprise

var log = logrus.WithFields(logrus.Fields{
teleport.ComponentKey: teleport.ComponentAuth,
})

// ServerOption allows setting options as functional arguments to Server
type ServerOption func(*Server) error

Expand Down
Loading

0 comments on commit 6803bd7

Please sign in to comment.