From 1608ca742584e83453b0ef52aa0e71661eb15666 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 29 Aug 2021 21:34:02 -0600 Subject: better logging in srv when fake Mailer is used --- srv/cmd/mediocre-blog/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'srv/cmd') diff --git a/srv/cmd/mediocre-blog/main.go b/srv/cmd/mediocre-blog/main.go index 7d3f722..5d0d790 100644 --- a/srv/cmd/mediocre-blog/main.go +++ b/srv/cmd/mediocre-blog/main.go @@ -74,8 +74,8 @@ func main() { var mailer mailinglist.Mailer if mailerParams.SMTPAddr == "" { - logger.Info(ctx, "-smtp-addr not given, using NullMailer") - mailer = mailinglist.NullMailer + logger.Info(ctx, "-smtp-addr not given, using a fake Mailer") + mailer = mailinglist.NewLogMailer(logger.WithNamespace("fake-mailer")) } else { mailer = mailinglist.NewMailer(mailerParams) } -- cgit v1.2.3