Skip to content

Commit

Permalink
nit: add an info log for where a producer wrote its output
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Sep 19, 2024
1 parent 98fce57 commit 182d85f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/producers/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ func WriteDraconOut(

stat, err := os.Stat(OutFile)
if Append && err == nil && stat.Size() > 0 {
slog.Info(
"appending",
slog.Int("issues", len(cleanIssues)),
slog.String("tool", toolName),
slog.String("to", OutFile),
)
return putil.AppendResults(cleanIssues, OutFile)
}
return putil.WriteResults(toolName, cleanIssues, OutFile, scanUUUID, scanStartTime, scanTags)
Expand Down

0 comments on commit 182d85f

Please sign in to comment.