Skip to content

Commit

Permalink
Fix debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Jul 18, 2024
1 parent 06a7463 commit 7a4640e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/fileutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func createFileForWriting(destPath string) (*os.File, error) {
return outputFile, nil
}

log.Debug("Couldn't open the destination file: '" + destPath + "'. Trying to set the file permissions to read-write.")
log.Debug(fmt.Sprintf("Couldn't to open the destination file: '%s' due to %s. Attempting to set the file permissions to read-write.", destPath, err.Error()))
if err = os.Chmod(destPath, 0600); err != nil {
return nil, err
}
Expand Down

0 comments on commit 7a4640e

Please sign in to comment.