Fix compile errors with pinned dependency versions

This commit is contained in:
Jan Dittberner 2017-08-27 16:30:49 +02:00
parent c62801fcb7
commit 9b07f3e538
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View 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)
}