From d4dd0dfed396f392f81f98dcf7f452c8b8466e0d Mon Sep 17 00:00:00 2001 From: "manu.somolinos" Date: Tue, 22 Jun 2021 08:06:57 +0200 Subject: [PATCH] missing changes --- go.mod | 5 +++-- sqsClient/sqsClient.go | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index d3b80eb..2577709 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,10 @@ module github.com/Ryanair/goetlib go 1.16 require ( - github.com/Ryanair/gofrlib v1.0.5 // indirect + github.com/Ryanair/gofrlib v1.0.5 github.com/aws/aws-lambda-go v1.24.0 github.com/aws/aws-sdk-go v1.38.63 + github.com/kr/pretty v0.2.1 // indirect github.com/stretchr/testify v1.7.0 - go.uber.org/zap v1.17.0 + go.uber.org/zap v1.17.0 // indirect ) diff --git a/sqsClient/sqsClient.go b/sqsClient/sqsClient.go index 9b4024d..eb87cf4 100644 --- a/sqsClient/sqsClient.go +++ b/sqsClient/sqsClient.go @@ -2,7 +2,7 @@ package sqsClient import ( "errors" - "github.com/Ryanair/goetlib/logger" + "github.com/Ryanair/gofrlib/log" "github.com/aws/aws-lambda-go/events" "github.com/aws/aws-sdk-go/service/sqs" "strings" @@ -35,10 +35,10 @@ func (scheduler *SqsPublisher) Publish(body string) error { QueueUrl: scheduler.queueUrl, } - logger.Debug("Sending message to SQS: %+v", input) + log.Debug("Sending message to SQS: %+v", input) _, err := scheduler.client.SendMessage(input) if err != nil { - logger.Error("Error sending message %+v caused error %+v", input, err) + log.Error("Error sending message %+v caused error %+v", input, err) return err } return nil