Skip to content

Commit

Permalink
allow passing Logger instance in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Nimlos committed Oct 4, 2023
1 parent 480a193 commit 6676931
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smtpsrv/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"crypto/tls"

"github.com/target/goalert/alert"
"github.com/target/goalert/util/log"
)

// Config is used to configure the SMTP server.
Expand All @@ -15,6 +16,7 @@ type Config struct {
MaxRecipients int

BackgroundContext func() context.Context
Logger *log.Logger

AuthorizeFunc func(ctx context.Context, id string) (context.Context, error)
CreateAlertFunc func(ctx context.Context, a *alert.Alert) error
Expand Down

0 comments on commit 6676931

Please sign in to comment.