Skip to content

Commit

Permalink
refactor: remove redundant log messages
Browse files Browse the repository at this point in the history
Remove unnecessary info-level logging from agent fetching and policy
enabling functions to reduce log noise. Debug information is still
preserved via trace logging.
  • Loading branch information
deathbeam committed Nov 29, 2024
1 parent 95409ac commit b7383e4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lua/CopilotChat/copilot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,6 @@ function Copilot:fetch_agents()

out['copilot'] = { name = 'Copilot', default = true, description = 'Default noop agent' }

log.info('Agents fetched')
log.trace(agents)
self.agents = out
return out
Expand Down Expand Up @@ -502,8 +501,6 @@ function Copilot:enable_policy(model)
log.warn('Failed to enable policy for ', model, ': ', (err or response.body))
return
end

log.info('Policy enabled for ' .. model)
end

--- Ask a question to Copilot
Expand Down

0 comments on commit b7383e4

Please sign in to comment.