Fix compile errors with pinned dependency versions
authorJan Dittberner <jan@dittberner.info>
Sun, 27 Aug 2017 14:30:49 +0000 (16:30 +0200)
committerJan Dittberner <jan@dittberner.info>
Sun, 27 Aug 2017 14:30:49 +0000 (16:30 +0200)
models.go
notifications.go

index 1c8bd7a..75473b4 100644 (file)
--- a/models.go
+++ b/models.go
@@ -254,7 +254,7 @@ func NewDB(database *sqlx.DB) *dbHandler {
                var stmt *sqlx.Stmt
                stmt, err := database.Preparex(sqlStatement)
                if err != nil {
-                       log.Criticalf("ERROR parsing statement %s: %s", sqlStatement, err)
+                       log.Critical("ERROR parsing statement %s: %s", sqlStatement, err)
                        failed_statements = append(failed_statements, sqlStatement)
                }
                stmt.Close()
index 02d814d..cf94898 100644 (file)
@@ -56,7 +56,7 @@ func MailNotifier(quitMailNotifier chan int) {
                        }
                        m.SetBody("text/plain", mailText.String())
 
-                       d := gomail.NewDialer(config.MailServer.Host, config.MailServer.Port, "", "")
+                       d := gomail.NewPlainDialer(config.MailServer.Host, config.MailServer.Port, "", "")
                        if err := d.DialAndSend(m); err != nil {
                                log.Errorf("sending mail failed: %v", err)
                        }