Skip to content

Commit

Permalink
#4 Remove log output
Browse files Browse the repository at this point in the history
  • Loading branch information
sklein94 committed Aug 10, 2022
1 parent 2a172da commit 30b82c2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package archive
import (
"archive/zip"
"fmt"
"github.com/prometheus/common/log"
"io"
"os"
)
Expand Down Expand Up @@ -126,11 +125,7 @@ func (ar *DefaultHandler) Close() error {
func (ar *DefaultHandler) WriteFilesIntoArchive(filePaths []string, closeAfterFinish bool) error {
if closeAfterFinish {
defer func() {
log.Debug("Closing archive handler...")
err := ar.Close()
if err != nil {
log.Error(err)
}
_ = ar.Close()
}()
}

Expand Down

0 comments on commit 30b82c2

Please sign in to comment.