logging
This commit is contained in:
parent
8dd5993481
commit
28b2d85660
@ -136,12 +136,12 @@ func (r *PushSubscription) StartListening(context context.Context) {
|
|||||||
if strings.HasPrefix(channel, groupChannel) || strings.HasPrefix(channel, dmChannel) {
|
if strings.HasPrefix(channel, groupChannel) || strings.HasPrefix(channel, dmChannel) {
|
||||||
c, ok := content.(map[string]interface{})
|
c, ok := content.(map[string]interface{})
|
||||||
if !ok {
|
if !ok {
|
||||||
fmt.Println(content, "err")
|
fmt.Println(content, data, "err")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
e, ok := c["line"]
|
e, ok := c["line"]
|
||||||
if !ok {
|
if !ok {
|
||||||
fmt.Println(content, "err")
|
fmt.Println(content, data, "err")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
d, _ := json.Marshal(e)
|
d, _ := json.Marshal(e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user