From 0b3957237bc66a425ead2cf79db98138036cf7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?France=CC=81=20Wilke?= <francewilke@gmail.com> Date: Tue, 15 Mar 2022 21:29:36 +0200 Subject: [PATCH] Remove unnecessary logs --- handler_utils/cron.go | 2 -- handler_utils/sqs.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/handler_utils/cron.go b/handler_utils/cron.go index 8fbd9b3..6084279 100644 --- a/handler_utils/cron.go +++ b/handler_utils/cron.go @@ -2,7 +2,6 @@ package handler_utils import ( "gitlab.com/uafrica/go-utils/errors" - "gitlab.com/uafrica/go-utils/logs" ) // ValidateCronHandlers checks that all handlers are correctly defined using one of the supported handler types @@ -18,6 +17,5 @@ func ValidateCronHandlers(handlers map[string]func() error) (map[string]func() e } countHandler++ } - logs.Info("Checked %d handlers\n", countHandler) return handlers, nil } diff --git a/handler_utils/sqs.go b/handler_utils/sqs.go index 4fd0727..8d08dd9 100644 --- a/handler_utils/sqs.go +++ b/handler_utils/sqs.go @@ -4,7 +4,6 @@ import ( "encoding/json" "github.com/aws/aws-lambda-go/events" "gitlab.com/uafrica/go-utils/errors" - "gitlab.com/uafrica/go-utils/logs" "gitlab.com/uafrica/go-utils/s3" "gitlab.com/uafrica/go-utils/sqs" "reflect" @@ -27,7 +26,6 @@ func ValidateSQSEndpoints(endpoints map[string]interface{}) (map[string]interfac } // replace the endpoint value so we can quickly call this handler endpoints[messageType] = handler - logs.Info("%s: OK (request: %v)\n", messageType, handler.RecordType) } return endpoints, nil } -- GitLab