From 192fccb4430afbd05a1752816f306e5c3b654acf Mon Sep 17 00:00:00 2001 From: pluja Date: Sun, 25 Feb 2024 17:42:08 +0100 Subject: [PATCH] use error logs --- src/server/web_handlers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/web_handlers.go b/src/server/web_handlers.go index b4cfb9a..9c98c98 100644 --- a/src/server/web_handlers.go +++ b/src/server/web_handlers.go @@ -276,26 +276,26 @@ func (s *Server) handlePostRequestServiceForm(c iris.Context) { log.Debug().Msg("Handling request service form") var data RequestFormData if err := c.ReadForm(&data); err != nil { - log.Debug().Err(err).Msg("Could not parse form data") + log.Error().Err(err).Msg("Could not parse form data") c.Redirect("/request/service?error=Invalid%20Form", iris.StatusSeeOther) return } log.Printf("Nonce: %v, ID: %v", data.PowNonce, data.PowId) if !s.PowChallenger.PowVerifyProof(data.PowId, data.PowNonce) { - log.Debug().Msg("Invalid PoW") + log.Error().Msg("Invalid PoW") c.Redirect("/request/service?error=Invalid%20Captcha", iris.StatusSeeOther) return } if data.KYCLevel < 0 || data.KYCLevel >= 4 { - log.Debug().Msgf("Invalid KYC Level value: %v", c.FormValue("kyc_level")) + log.Error().Msgf("Invalid KYC Level value: %v", c.FormValue("kyc_level")) c.Redirect("/request/service?error=Invalid%20KYC%20Level", iris.StatusSeeOther) return } if len(data.Attributes) < 3 { - log.Debug().Msgf("Invalid number of attributes: %v", len(data.Attributes)) + log.Error().Msgf("Invalid number of attributes: %v", len(data.Attributes)) c.Redirect("/request/service?error=You%20must%20select%20at%20least%203%20attributes", iris.StatusSeeOther) return }