feat: print user id when error

This commit is contained in:
CalciumIon
2024-07-27 17:47:30 +08:00
parent d4a5df7373
commit ab1d61d910
3 changed files with 6 additions and 4 deletions

View File

@@ -179,8 +179,8 @@ func Max(a int, b int) int {
}
}
func MessageWithRequestId(message string, id string) string {
return fmt.Sprintf("%s (request id: %s)", message, id)
func MessageWithRequestId(message string, id string, userId int) string {
return fmt.Sprintf("%s (request id: %s, user id: %d)", message, id, userId)
}
func RandomSleep() {