[BUGFIX] init notify with debug
This commit is contained in:
parent
be29dede66
commit
5f9ad29483
|
@ -93,6 +93,7 @@ func (db *DB) NewNotify(to string) *Notify {
|
|||
Protocol: addr[0],
|
||||
To: addr[1],
|
||||
RegexIn: make(map[string]*regexp.Regexp),
|
||||
MaxPrioIn: log.DebugLevel,
|
||||
}
|
||||
db.AddNotify(n)
|
||||
return n
|
||||
|
|
|
@ -48,6 +48,8 @@ func Init(configInterface interface{}, db *database.DB, bot *bot.Bot) output.Out
|
|||
defaults = append(defaults, &database.Notify{
|
||||
Protocol: proto,
|
||||
To: config.Default,
|
||||
RegexIn: make(map[string]*regexp.Regexp),
|
||||
MaxPrioIn: log.DebugLevel,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package xmpp
|
|||
|
||||
import (
|
||||
"net/http"
|
||||
"regexp"
|
||||
|
||||
"dev.sum7.eu/genofire/golang-lib/websocket"
|
||||
"github.com/mitchellh/mapstructure"
|
||||
|
@ -59,6 +60,8 @@ func Init(configInterface interface{}, db *database.DB, bot *bot.Bot) output.Out
|
|||
defaults = append(defaults, &database.Notify{
|
||||
Protocol: proto,
|
||||
To: config.Default,
|
||||
RegexIn: make(map[string]*regexp.Regexp),
|
||||
MaxPrioIn: log.DebugLevel,
|
||||
})
|
||||
}
|
||||
return &Output{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package xmpp
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
xmpp_client "dev.sum7.eu/genofire/yaja/client"
|
||||
|
@ -150,6 +151,8 @@ func Init(configInterface interface{}, db *database.DB, bot *bot.Bot) output.Out
|
|||
def := &database.Notify{
|
||||
Protocol: proto,
|
||||
To: to,
|
||||
RegexIn: make(map[string]*regexp.Regexp),
|
||||
MaxPrioIn: log.DebugLevel,
|
||||
}
|
||||
if muc {
|
||||
def.Protocol = protoGroup
|
||||
|
|
Loading…
Reference in New Issue