Skip to content

Commit

Permalink
refactor: only log base name of processed file
Browse files Browse the repository at this point in the history
  • Loading branch information
maeb committed Nov 7, 2023
1 parent a31daf4 commit 3a3cedd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/fai/fai.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ func (f *fAI) processFile(file string) {

metrics.Size(fileSizeBytes)

f.logger.Info("Processed file", "file", newFile, "size", fileSizeBytes, "md5", md5sum, "valid", isValid)
name := filepath.Base(newFile)
f.logger.Info("Processed file", "name", name, "size", fileSizeBytes, "md5", md5sum, "valid", isValid)
}

// Run starts the FAI.
Expand Down

0 comments on commit 3a3cedd

Please sign in to comment.