Skip to content

Commit

Permalink
chore: add log when fail to send qq request
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Jul 12, 2024
1 parent d9b6470 commit 25f9737
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ func NotifyQQ(botMessage *BotMessage) {
RequestLog("Error Unmarshaling response", "NotifyQQ", 0, false)
}
RequestLog(fmt.Sprintf("Error sending request %s", string(response)), "NotifyQQ", 0, false)
request, _ := json.Marshal(botMessage)
RequestLog(fmt.Sprintf("Request: %s", string(request)), "NotifyQQ", 0, false)
}
}

0 comments on commit 25f9737

Please sign in to comment.