Skip to content

Commit

Permalink
pass main app logger to smtp config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Nimlos committed Oct 4, 2023
1 parent 6676931 commit ffa345e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/initsmtpsrv.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func (app *App) initSMTPServer(ctx context.Context) error {
TLSConfig: app.cfg.TLSConfigSMTP,
MaxRecipients: app.cfg.SMTPMaxRecipients,
BackgroundContext: app.LogBackgroundContext,
Logger: app.cfg.Logger,
AuthorizeFunc: func(ctx context.Context, id string) (context.Context, error) {
tok, _, err := authtoken.Parse(id, nil)
if err != nil {
Expand Down

0 comments on commit ffa345e

Please sign in to comment.