diff --git a/server/backend/cron/feedback_email.go b/server/backend/cron/feedback_email.go index c5321b5e..c1ffa02f 100644 --- a/server/backend/cron/feedback_email.go +++ b/server/backend/cron/feedback_email.go @@ -94,12 +94,12 @@ func (c *CronService) feedbackEmailCron() error { var results []model.Feedback if err := c.db.Find(&results, "processed = false").Scan(&results).Error; err != nil { - log.WithError(err).Fatal("could not get unprocessed feedback") + log.WithError(err).Error("could not get unprocessed feedback") return err } parsedHtmlBody, parsedTxtBody, err := parseTemplates() if err != nil { - log.WithError(err).Fatal("could not parse email templates") + log.WithError(err).Error("could not parse email templates") return err } @@ -138,7 +138,7 @@ func (c *CronService) feedbackEmailCron() error { func setupSMTPDialer() (*gomail.Dialer, error) { smtpPort, err := strconv.Atoi(os.Getenv("SMTP_PORT")) if err != nil { - log.WithError(err).Fatal("SMTP_PORT is not an integer") + log.WithError(err).Error("SMTP_PORT is not an integer") return nil, err } d := gomail.NewDialer(os.Getenv("SMTP_URL"), smtpPort, os.Getenv("SMTP_USERNAME"), os.Getenv("SMTP_PASSWORD"))