diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-21 13:46:32 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-21 13:46:32 +0200 |
| commit | 9ae6af8856ca6a13d575ec6a8989a5f6ee4297b1 (patch) | |
| tree | 0b5a898f1be2d39c60175dd264737bc7219037a8 /internal/llm/tools/write.go | |
| parent | e7bb99baab5e6968ce0351d6ad219ed21ceec4df (diff) | |
| download | opencode-9ae6af8856ca6a13d575ec6a8989a5f6ee4297b1.tar.gz opencode-9ae6af8856ca6a13d575ec6a8989a5f6ee4297b1.zip | |
remove old logs
Diffstat (limited to 'internal/llm/tools/write.go')
| -rw-r--r-- | internal/llm/tools/write.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/llm/tools/write.go b/internal/llm/tools/write.go index 261865c39..2b3fa3dd0 100644 --- a/internal/llm/tools/write.go +++ b/internal/llm/tools/write.go @@ -11,6 +11,7 @@ import ( "github.com/kujtimiihoxha/opencode/internal/config" "github.com/kujtimiihoxha/opencode/internal/diff" "github.com/kujtimiihoxha/opencode/internal/history" + "github.com/kujtimiihoxha/opencode/internal/logging" "github.com/kujtimiihoxha/opencode/internal/lsp" "github.com/kujtimiihoxha/opencode/internal/permission" ) @@ -192,13 +193,13 @@ func (w *writeTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error // User Manually changed the content store an intermediate version _, err = w.files.CreateVersion(ctx, sessionID, filePath, oldContent) if err != nil { - fmt.Printf("Error creating file history version: %v\n", err) + logging.Debug("Error creating file history version", "error", err) } } // Store the new version _, err = w.files.CreateVersion(ctx, sessionID, filePath, params.Content) if err != nil { - fmt.Printf("Error creating file history version: %v\n", err) + logging.Debug("Error creating file history version", "error", err) } recordFileWrite(filePath) |
