Skip to content

Reduce log noise: models.dev refresh logs at INFO level during startup #10506

@devxoul

Description

@devxoul

Problem

During startup, the models.dev refresh function logs at INFO level, creating unnecessary noise in production logs:

INFO  2026-01-25T06:06:04 +69ms service=models.dev file={} refreshing

Screenshot showing noisy INFO log

This log message is operational/diagnostic in nature and doesn't provide actionable information to end users in production environments.

Expected Behavior

  • Production (INFO level): Operational logs like "refreshing" should be hidden
  • Local development (DEBUG level): These logs should remain visible for debugging purposes

Proposed Solution

Change the log.info("refreshing", { file }) call to log.debug("refreshing") in the models.dev refresh function.

This approach:

  • Removes INFO-level log noise during startup
  • Preserves diagnostic capability for local development where log level defaults to DEBUG
  • Follows existing patterns in the codebase (e.g., config.ts uses log.debug() for similar operational logs)

Affected Files

  • packages/opencode/src/provider/models.ts

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions