fix: remove logging from utils
This commit was merged in pull request #292.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"me-fit/log"
|
||||
"me-fit/types"
|
||||
|
||||
"fmt"
|
||||
"net/smtp"
|
||||
|
||||
"me-fit/types"
|
||||
"me-fit/utils"
|
||||
)
|
||||
|
||||
type MailService interface {
|
||||
@@ -34,6 +34,6 @@ func (m MailServiceImpl) SendMail(to string, subject string, message string) {
|
||||
|
||||
err := smtp.SendMail(s.Host+":"+s.Port, auth, s.FromMail, []string{to}, []byte(msg))
|
||||
if err != nil {
|
||||
utils.LogError("Error sending mail: %v", err)
|
||||
log.Error("Error sending mail: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user