fix logger lib change

This commit is contained in:
Martin/Geno 2019-06-20 10:37:39 +02:00
parent ce7d4282ca
commit 5726dc3de6
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
2 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ func NewPriority(db *database.DB) *Command {
n.MaxPrioIn = max 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 { Action: func(from string, params []string) string {
msg := "priority: \n" msg := "priority: \n"
for _, n := range db.Notifies { 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 return msg
}, },
@ -65,7 +65,7 @@ func NewPriority(db *database.DB) *Command {
of := params[0] of := params[0]
msg := "priority: \n" msg := "priority: \n"
if notify, ok := db.NotifiesByAddress[of]; ok { 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 return msg
}, },
@ -74,7 +74,7 @@ func NewPriority(db *database.DB) *Command {
Action: func(from string, params []string) string { Action: func(from string, params []string) string {
msg := "priority: \n" msg := "priority: \n"
if notify, ok := db.NotifiesByAddress[from]; ok { 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 return msg
}, },

View File

@ -62,7 +62,7 @@ func (out *Output) sender() {
} }
} }
if !send { 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)
} }
} }
} }