#9990: refactor(agents): replace console.warn with SubsystemLogger in venice-models.tsrefactor(agents): replace console.warn with SubsystemLogger in venice…
agents
size: XS
Cluster:
Refactor Console Logging in Agents
Supersedes closed PRs #9917 and #9980. Refactors Venice models agent to use standardized SubsystemLogger for improved logging control.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates `src/agents/venice-models.ts` to use the shared `createSubsystemLogger` logging wrapper instead of direct `console.warn` calls when Venice model discovery fails (non-OK HTTP response, empty model list, or thrown exception). This aligns the Venice models agent with the repository’s standardized subsystem-based logging used elsewhere under `src/logging/subsystem.ts`.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Change is a small, localized refactor (console.warn -> SubsystemLogger.warn) with no impact on control flow, return values, or error handling; import path matches existing usage patterns across the repo.
- No files require special attention
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#9425: refactor(agents): replace console.warn with SubsystemLogger in comp...
by dinakars777 · 2026-02-05
84.5%
#9974: refactor(agents): replace console.warn with SubsystemLogger in comp...
by dinakars777 · 2026-02-05
83.8%
#9461: refactor(cli): replace console.warn with SubsystemLogger in health.ts
by dinakars777 · 2026-02-05
77.1%
#4837: fix: strip tools for Venice models without function calling support
by jonisjongithub · 2026-01-30
75.5%
#12964: fix(#20156): Venice - add missing models and set a new model default
by sabrinaaquino · 2026-02-10
74.0%
#11153: refactor(hooks): replace console.warn/error with subsystem logger
by hclsys · 2026-02-07
73.1%
#23669: refactor(logging): migrate node-host and tailscale console calls to...
by kevinWangSheng · 2026-02-22
71.9%
#11562: Fix #10883: Enforce subagent model configuration
by divol89 · 2026-02-08
71.4%
#11281: fix(logging): prevent subsystem loggers from bypassing file log lev...
by janckerchen · 2026-02-07
71.2%
#8546: Fix/config UI improvements
by RandomRaine · 2026-02-04
70.5%