From fb45356a08ee1982affc915e9d9a4cf3e85fa95f Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 30 Jan 2022 18:54:01 +0100 Subject: [PATCH] update on log printing --- src/routers/funcs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routers/funcs.go b/src/routers/funcs.go index 7254f55..8816c89 100644 --- a/src/routers/funcs.go +++ b/src/routers/funcs.go @@ -33,11 +33,11 @@ func RegisterRoutes(e *echo.Echo, ctx *context.Context, cfg *config.Config) { var msg string err = c.Bind(ip) if err != nil { - return JSONResult(c, fmt.Errorf("Error when parsing body"), "") + return JSONResult(c, fmt.Errorf("error when parsing body"), "") } num, err := ip.InsertIP(cfg) if err != nil { - return JSONResult(c, fmt.Errorf("Error inserting data"), "") + return JSONResult(c, fmt.Errorf("error inserting data"), "") } if num > 0 { msg = fmt.Sprintf("Inserted %d IP", num)