mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-02-06 01:57:38 +01:00
add logging to EnumerateQuest
This commit is contained in:
@@ -249,6 +249,7 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
|
|
||||||
err = rows.Scan(&id, &maxPlayers, &questType, &questId, &mark, &flags, &startTime, &activeDays, &inactiveDays)
|
err = rows.Scan(&id, &maxPlayers, &questType, &questId, &mark, &flags, &startTime, &activeDays, &inactiveDays)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
s.logger.Error("Failed to scan event quest row", zap.Error(err))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -283,9 +284,11 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
|
|
||||||
data, err := makeEventQuest(s, rows)
|
data, err := makeEventQuest(s, rows)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
s.logger.Error("Failed to make event quest", zap.Error(err))
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
if len(data) > 896 || len(data) < 352 {
|
if len(data) > 896 || len(data) < 352 {
|
||||||
|
s.logger.Error("Invalid quest data length", zap.Int("len", len(data)))
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
totalCount++
|
totalCount++
|
||||||
|
|||||||
Reference in New Issue
Block a user