announce where results are written (#4132)

Before this change, when running with '-o foo' the output would end
with:

```
RESULTS
-------
```

This was rather confusing. There's of course many ways to make this more
clear, this commit adds a log line announcing where the output is
written to:

```
RESULTS
-------
Writing to foo
```

Signed-off-by: Arnout Engelen <arnout@bzzt.net>
This commit is contained in:
Arnout Engelen 2024-06-06 19:42:19 +02:00 committed by GitHub
parent 7e7e2f5818
commit 3da6db56c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,6 +134,7 @@ func FormatResults(
if err != nil {
return fmt.Errorf("unable to create output file: %w", err)
}
fmt.Fprintln(os.Stderr, "Writing results to", opts.ResultsFile)
defer output.Close()
}