summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-08-27 16:30:49 +0200
committerJan Dittberner <jan@dittberner.info>2017-08-27 16:30:49 +0200
commit9b07f3e5384668d84daaa9a062b6c967e5f2ee1b (patch)
tree050e064856e5d98f60efddc494b0d2ed861c9324
parentc62801fcb70daadcdd3e564e516a0e5c949454ce (diff)
downloadcacert-boardvoting-9b07f3e5384668d84daaa9a062b6c967e5f2ee1b.tar.gz
cacert-boardvoting-9b07f3e5384668d84daaa9a062b6c967e5f2ee1b.tar.xz
cacert-boardvoting-9b07f3e5384668d84daaa9a062b6c967e5f2ee1b.zip
Fix compile errors with pinned dependency versions
-rw-r--r--models.go2
-rw-r--r--notifications.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/models.go b/models.go
index 1c8bd7a..75473b4 100644
--- 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()
diff --git a/notifications.go b/notifications.go
index 02d814d..cf94898 100644
--- a/notifications.go
+++ b/notifications.go
@@ -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)
}