From e6cb906d35924def84f7e487a9d2e1bb3bd7d83d Mon Sep 17 00:00:00 2001 From: sneak Date: Wed, 17 Dec 2025 15:02:46 -0800 Subject: [PATCH] Change operational log messages from Debug to Info --- internal/cli/check.go | 4 ++-- internal/cli/freshen.go | 4 ++-- internal/cli/gen.go | 2 +- mfer/deserialize.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/cli/check.go b/internal/cli/check.go index 705be72..6d3554c 100644 --- a/internal/cli/check.go +++ b/internal/cli/check.go @@ -59,7 +59,7 @@ func (mfa *CLIApp) checkManifestOperation(ctx *cli.Context) error { basePath := ctx.String("base") showProgress := ctx.Bool("progress") - log.Debugf("checking manifest %s with base %s", manifestPath, basePath) + log.Infof("checking manifest %s with base %s", manifestPath, basePath) // Create checker chk, err := checker.NewChecker(manifestPath, basePath, mfa.Fs) @@ -67,7 +67,7 @@ func (mfa *CLIApp) checkManifestOperation(ctx *cli.Context) error { return fmt.Errorf("failed to load manifest: %w", err) } - log.Debugf("manifest contains %d files, %d bytes", chk.FileCount(), chk.TotalBytes()) + log.Infof("manifest contains %d files, %d bytes", chk.FileCount(), chk.TotalBytes()) // Set up results channel results := make(chan checker.Result, 1) diff --git a/internal/cli/freshen.go b/internal/cli/freshen.go index ecd1856..61018c3 100644 --- a/internal/cli/freshen.go +++ b/internal/cli/freshen.go @@ -74,7 +74,7 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error { } existingFiles := manifest.Files() - log.Debugf("manifest contains %d files", len(existingFiles)) + log.Infof("manifest contains %d files", len(existingFiles)) // Build map of existing entries by path existingByPath := make(map[string]*mfer.MFFilePath, len(existingFiles)) @@ -197,7 +197,7 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error { removed = int64(len(existingByPath)) scanDuration := time.Since(startScan) - log.Debugf("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", scanDuration.Round(time.Millisecond), unchanged, changed, added, removed) // Calculate total bytes to hash diff --git a/internal/cli/gen.go b/internal/cli/gen.go index 5bcfab5..feda2f5 100644 --- a/internal/cli/gen.go +++ b/internal/cli/gen.go @@ -66,7 +66,7 @@ func (mfa *CLIApp) generateManifestOperation(ctx *cli.Context) error { } enumWg.Wait() - log.Debugf("enumerated %d files, %d bytes total", s.FileCount(), s.TotalBytes()) + log.Infof("enumerated %d files, %d bytes total", s.FileCount(), s.TotalBytes()) // Check if output file exists outputPath := ctx.String("output") diff --git a/mfer/deserialize.go b/mfer/deserialize.go index 3555775..66558e1 100644 --- a/mfer/deserialize.go +++ b/mfer/deserialize.go @@ -45,7 +45,7 @@ func (m *manifest) deserializeInner() error { return err } - log.Debugf("loaded manifest with %d files", len(m.pbInner.Files)) + log.Infof("loaded manifest with %d files", len(m.pbInner.Files)) return nil }