Skip to content

Commit e6bb1b4

Browse files
author
Daniel Jimenez
committed
Improve debug log
1 parent bd67b0f commit e6bb1b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: pkg/processor/processor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (p *CheckProcessor) ProcessMessage(m string) error {
154154
}
155155
}
156156

157-
l.Debug("Sending open findings")
157+
l.Debug("Notifying findings")
158158
err = p.notifyFindings(findingsState, check.Tag)
159159
if err != nil {
160160
return err

Diff for: pkg/queue/sqs.go

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ func (c *SQSConsumer) readAndProcess(ctx context.Context) error {
165165
}
166166

167167
// Delete it
168+
c.logger.Debugf("Deleting SQS message: %s", *mssg.Body)
168169
if err = c.deleteMessage(mssg); err != nil {
169170
c.logger.Errorf("Error deleting processed message: %s", err.Error())
170171
}

0 commit comments

Comments
 (0)