mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Logs: Tweak messages and log levels for improved readability
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/dustin/go-humanize/english"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/photoprism/photoprism/internal/config"
|
||||
@@ -76,7 +78,7 @@ func purgeAction(ctx *cli.Context) error {
|
||||
} else {
|
||||
elapsed := time.Since(start)
|
||||
|
||||
log.Infof("purge: removed %d files and %d photos in %s", len(files), len(photos), elapsed)
|
||||
log.Infof("purge: removed %s and %s [%s]", english.Plural(len(files), "file", "files"), english.Plural(len(photos), "photo", "photos"), elapsed)
|
||||
}
|
||||
|
||||
conf.Shutdown()
|
||||
|
||||
Reference in New Issue
Block a user