Skip to content

Commit

Permalink
feat: method to set custom logger
Browse files Browse the repository at this point in the history
  • Loading branch information
inaciogu committed Jan 23, 2024
1 parent 6244220 commit 3b9124b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consumer/sqsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ func setDefaultOptions(options *SQSClientOptions) {
}
}

func (s *SQSClient) SetLogger(logger Logger) {
s.Logger = logger
}

// GetQueueUrl returns the URL of the queue based on the queue name
func (s *SQSClient) GetQueueUrl() *string {
urlResult, err := s.Client.GetQueueUrl(&sqs.GetQueueUrlInput{
Expand Down

0 comments on commit 3b9124b

Please sign in to comment.