mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-07-05 22:03:26 +00:00
fix log.
This commit is contained in:
@ -344,20 +344,20 @@ func genLongTemplate(resId, brief string, ts int64) *message.SendingMessage {
|
|||||||
func (c *QQClient) Info(msg string, args ...interface{}) {
|
func (c *QQClient) Info(msg string, args ...interface{}) {
|
||||||
c.dispatchLogEvent(&LogEvent{
|
c.dispatchLogEvent(&LogEvent{
|
||||||
Type: "INFO",
|
Type: "INFO",
|
||||||
Message: fmt.Sprintf(msg, args),
|
Message: fmt.Sprintf(msg, args...),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *QQClient) Error(msg string, args ...interface{}) {
|
func (c *QQClient) Error(msg string, args ...interface{}) {
|
||||||
c.dispatchLogEvent(&LogEvent{
|
c.dispatchLogEvent(&LogEvent{
|
||||||
Type: "ERROR",
|
Type: "ERROR",
|
||||||
Message: fmt.Sprintf(msg, args),
|
Message: fmt.Sprintf(msg, args...),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *QQClient) Debug(msg string, args ...interface{}) {
|
func (c *QQClient) Debug(msg string, args ...interface{}) {
|
||||||
c.dispatchLogEvent(&LogEvent{
|
c.dispatchLogEvent(&LogEvent{
|
||||||
Type: "DEBUG",
|
Type: "DEBUG",
|
||||||
Message: fmt.Sprintf(msg, args),
|
Message: fmt.Sprintf(msg, args...),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user