Skip to content

Commit

Permalink
Merge pull request #585 from SiaFoundation/nate/deprecated-debug-log
Browse files Browse the repository at this point in the history
cmd: change deprecated db log to debug level
  • Loading branch information
n8maninger authored Jan 24, 2025
2 parents 22a44d9 + e90fa27 commit 34c7fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/hostd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func setupUPNP(ctx context.Context, port uint16, log *zap.Logger) (string, error
func openSQLite3Database(dir string, log *zap.Logger) (*sqlite.Store, error) {
oldPath := filepath.Join(dir, "hostd.db")
if _, err := os.Stat(oldPath); err == nil {
log.Warn("using deprecated hostd.db", zap.String("path", oldPath))
log.Debug("using deprecated hostd.db", zap.String("path", oldPath))
return sqlite.OpenDatabase(oldPath, log)
} else if !errors.Is(err, os.ErrNotExist) {
return nil, fmt.Errorf("failed to stat database: %w", err)
Expand Down

0 comments on commit 34c7fea

Please sign in to comment.