Update logging format

This commit is contained in:
Ralph Slooten
2022-10-13 02:53:53 +13:00
parent 4d511bd29d
commit 4368541a96
3 changed files with 6 additions and 7 deletions

View File

@@ -8,12 +8,12 @@ import (
"bytes"
"fmt"
"io/ioutil"
"log"
"net/mail"
"net/smtp"
"os"
"os/user"
"github.com/axllent/mailpit/logger"
flag "github.com/spf13/pflag"
)
@@ -80,6 +80,6 @@ func Run() {
err = smtp.SendMail(smtpAddr, nil, fromAddr, recip, body)
if err != nil {
fmt.Fprintln(os.Stderr, "error sending mail")
log.Fatal(err)
logger.Log().Fatal(err)
}
}