why use val in the log midou
This commit is contained in:
parent
4c29f18ec5
commit
b35e7805d2
@ -28,7 +28,7 @@ func SignupPage(c *fiber.Ctx) error {
|
|||||||
}
|
}
|
||||||
raid, ok := os.LookupEnv("PUBLAPI_RAID_MODE")
|
raid, ok := os.LookupEnv("PUBLAPI_RAID_MODE")
|
||||||
if !ok || raid == "1" {
|
if !ok || raid == "1" {
|
||||||
log.Error("PUBLAPI_RAID_MODE is ", val, " accepting every request as OK and not doing anything...\n User info: ", username, email, ip)
|
log.Error("PUBLAPI_RAID_MODE is on accepting every request as OK and not doing anything...\n User info: ", username, email, ip)
|
||||||
return c.SendStatus(fiber.StatusOK)
|
return c.SendStatus(fiber.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user