why use val in the log midou

This commit is contained in:
Arya 2023-05-27 18:25:12 +08:00
parent 4c29f18ec5
commit b35e7805d2
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -28,7 +28,7 @@ func SignupPage(c *fiber.Ctx) error {
}
raid, ok := os.LookupEnv("PUBLAPI_RAID_MODE")
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)
}