Skip to content

Commit

Permalink
log: added more logs for easy debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pachhh committed Apr 4, 2024
1 parent 614d7e2 commit d95f868
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dynamodb_matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ func (m *DynamoDBMatcher) Provision(ctx caddy.Context) error {

func (m DynamoDBMatcher) Match(r *http.Request) bool {

log.Println("DynamoDB Matcher init: ", r.Host)

var valueCheck string

rgx, err := regexp.Compile(m.Regex)
rgx, err := regexp.MustCompile(m.Regex)
patternWww := regexp.MustCompile(`(?:www)`)

if err != nil {
Expand All @@ -62,7 +64,6 @@ func (m DynamoDBMatcher) Match(r *http.Request) bool {
}

log.Println("Value to check - DynamoDB Matcher: ", valueCheck)
fmt.Println("Value to check - DynamoDB Matcher: ", valueCheck)

input := &dynamodb.GetItemInput{
TableName: &m.TableName,
Expand Down

0 comments on commit d95f868

Please sign in to comment.