Skip to content

Commit f575ba7

Browse files
committed
only log non user input error
1 parent 7885d39 commit f575ba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,13 +982,13 @@ func TibiaDataErrorHandler(c *gin.Context, err error, httpCode int) {
982982
}
983983

984984
info.Status.Message = err.Error()
985+
986+
log.Printf("[TibiaDataErrorHandler] HTTPCode: %d], Message: %s", info.Status.HTTPCode, info.Status.Message)
985987
}
986988

987989
var output OutInformation
988990
output.Information = info
989991

990-
log.Printf("[TibiaDataErrorHandler] HTTPCode: %d, Error: %d, Message: %s", info.Status.HTTPCode, info.Status.Error, info.Status.Message)
991-
992992
c.JSON(httpCode, output)
993993
}
994994

0 commit comments

Comments
 (0)