why use val in the log midou

This commit is contained in:
arya committed 2023-05-27 18:25:12 +08:00
1 parent 4c29f18ec5
commit b35e7805d2
1 file changed
+1 -1
+1 -1
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)
}