Add verbose output for freshen showing M/A/D files with -v
This commit is contained in:
parent
e6cb906d35
commit
6dc496fa9e
@ -149,6 +149,7 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
|
|||||||
existingMtime := time.Unix(existing.Mtime.Seconds, int64(existing.Mtime.Nanos))
|
existingMtime := time.Unix(existing.Mtime.Seconds, int64(existing.Mtime.Nanos))
|
||||||
if existing.Size != info.Size() || !existingMtime.Equal(info.ModTime()) {
|
if existing.Size != info.Size() || !existingMtime.Equal(info.ModTime()) {
|
||||||
changed++
|
changed++
|
||||||
|
log.Debugf("M %s", relPath)
|
||||||
entries = append(entries, &freshenEntry{
|
entries = append(entries, &freshenEntry{
|
||||||
path: relPath,
|
path: relPath,
|
||||||
size: info.Size(),
|
size: info.Size(),
|
||||||
@ -169,6 +170,7 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
|
|||||||
delete(existingByPath, relPath)
|
delete(existingByPath, relPath)
|
||||||
} else {
|
} else {
|
||||||
added++
|
added++
|
||||||
|
log.Debugf("A %s", relPath)
|
||||||
entries = append(entries, &freshenEntry{
|
entries = append(entries, &freshenEntry{
|
||||||
path: relPath,
|
path: relPath,
|
||||||
size: info.Size(),
|
size: info.Size(),
|
||||||
@ -195,6 +197,9 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
|
|||||||
|
|
||||||
// Remaining entries in existingByPath are removed files
|
// Remaining entries in existingByPath are removed files
|
||||||
removed = int64(len(existingByPath))
|
removed = int64(len(existingByPath))
|
||||||
|
for path := range existingByPath {
|
||||||
|
log.Debugf("D %s", path)
|
||||||
|
}
|
||||||
|
|
||||||
scanDuration := time.Since(startScan)
|
scanDuration := time.Since(startScan)
|
||||||
log.Infof("scan complete in %s: %d unchanged, %d changed, %d added, %d removed",
|
log.Infof("scan complete in %s: %d unchanged, %d changed, %d added, %d removed",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user