From 5726dc3de6066f9b74493d8646c8084d77d77568 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Thu, 20 Jun 2019 10:37:39 +0200 Subject: [PATCH] fix logger lib change --- bot/priority.go | 8 ++++---- output/all/internal.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/priority.go b/bot/priority.go index 17d36e6..6cdff58 100644 --- a/bot/priority.go +++ b/bot/priority.go @@ -41,7 +41,7 @@ func NewPriority(db *database.DB) *Command { n.MaxPrioIn = max - return fmt.Sprintf("set filter for %s to %s", to, max) + return fmt.Sprintf("set filter for %s to %d", to, max) }, }, { @@ -50,7 +50,7 @@ func NewPriority(db *database.DB) *Command { Action: func(from string, params []string) string { msg := "priority: \n" for _, n := range db.Notifies { - msg = fmt.Sprintf("%s%s - %s\n", msg, n.Address(), n.MaxPrioIn) + msg = fmt.Sprintf("%s%s - %d\n", msg, n.Address(), n.MaxPrioIn) } return msg }, @@ -65,7 +65,7 @@ func NewPriority(db *database.DB) *Command { of := params[0] msg := "priority: \n" if notify, ok := db.NotifiesByAddress[of]; ok { - msg = fmt.Sprintf("%s %s is %s", msg, of, notify.MaxPrioIn) + msg = fmt.Sprintf("%s %s is %d", msg, of, notify.MaxPrioIn) } return msg }, @@ -74,7 +74,7 @@ func NewPriority(db *database.DB) *Command { Action: func(from string, params []string) string { msg := "priority: \n" if notify, ok := db.NotifiesByAddress[from]; ok { - msg = fmt.Sprintf("%s %s is %s", msg, from, notify.MaxPrioIn) + msg = fmt.Sprintf("%s %s is %d", msg, from, notify.MaxPrioIn) } return msg }, diff --git a/output/all/internal.go b/output/all/internal.go index b02ef12..2c9cff9 100644 --- a/output/all/internal.go +++ b/output/all/internal.go @@ -62,7 +62,7 @@ func (out *Output) sender() { } } if !send { - logger.Warnf("notify not send to %s: [%s] %s", to.Address(), c.Level, c.Message) + logger.Warnf("notify not send to %s: [%d] %s", to.Address(), c.Level, c.Message) } } }