diff --git a/client/listener.go b/client/listener.go index f2d7cbe..217ea66 100644 --- a/client/listener.go +++ b/client/listener.go @@ -248,7 +248,7 @@ func decodeOlPushServicePacket(c *QQClient, pkt *network.Packet) (any, error) { c.FriendNotifyEvent.dispatch(c, eventConverter.ParsePokeEvent(&pb)) } default: - c.warning("unknown subtype %d of type 0x210, proto data: %x", subType, pkg.Body.MsgContent) + c.debug("unknown subtype %d of type 0x210, proto data: %x", subType, pkg.Body.MsgContent) } case 0x2DC: // grp event, 732 subType := pkg.ContentHead.SubType.Unwrap() @@ -337,10 +337,10 @@ func decodeOlPushServicePacket(c *QQClient, pkt *network.Packet) (any, error) { c.GroupMuteEvent.dispatch(c, ev) return nil, nil default: - c.warning("Unsupported group event, subType: %v, proto data: %x", subType, pkg.Body.MsgContent) + c.debug("Unsupported group event, subType: %v, proto data: %x", subType, pkg.Body.MsgContent) } default: - c.warning("Unsupported message type: %v, proto data: %x", typ, pkg.Body.MsgContent) + c.debug("Unsupported message type: %v, proto data: %x", typ, pkg.Body.MsgContent) } return nil, nil diff --git a/client/log.go b/client/log.go index 3313fbd..c51a02f 100644 --- a/client/log.go +++ b/client/log.go @@ -15,13 +15,13 @@ func (c *QQClient) SetLogger(logger log.Logger) { func (c *QQClient) info(msg string, args ...any) { if c.logger != nil { - c.logger.Info(log.Getcaller(msg), args...) + c.logger.Info(msg, args...) } } func (c *QQClient) infoln(msgs ...any) { if c.logger != nil { - c.logger.Info(log.Getcaller(fmt.Sprint(msgs...))) + c.logger.Info(fmt.Sprint(msgs...)) } }