-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Description
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
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.tsuseslog.debug()for similar operational logs)
Affected Files
packages/opencode/src/provider/models.ts
smola, ahmed-mekky, arsham and padapada09
Metadata
Metadata
Assignees
Labels
No labels
