Skip to content

Commit

Permalink
print youngest file creation date in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Nov 27, 2024
1 parent 6b9c6fd commit 6891674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/purger/purger.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func runPruneOld(cmd *cobra.Command, args []string) error {
force = true
}
}
zlog.Info("pruning files", zap.String("folder", path.Dir(filesToPurge[0])), zap.Int("count", len(filesToPurge)), zap.Float64("size_mib", float64(totalFileSize)/(1024*1024)))
zlog.Info("pruning files", zap.String("folder", path.Dir(filesToPurge[0])), zap.Int("count", len(filesToPurge)), zap.Float64("size_mib", float64(totalFileSize)/(1024*1024)), zap.Time("youngest_file_date", m.YoungestFileCreationDate))

jobs := make(chan job, 1000)
var wg sync.WaitGroup
Expand Down

0 comments on commit 6891674

Please sign in to comment.