mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Log API-initiated tasks to a tmp directory (#5833)
This commit is contained in:
parent
d2b51c1b41
commit
921d7ca6c4
2 changed files with 7 additions and 1 deletions
5
.changeset/late-rockets-talk.md
Normal file
5
.changeset/late-rockets-talk.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Log api-initiated tasks to a tmp directory
|
||||
|
|
@ -2,6 +2,7 @@ import { EventEmitter } from "events"
|
|||
import * as vscode from "vscode"
|
||||
import fs from "fs/promises"
|
||||
import * as path from "path"
|
||||
import * as os from "os"
|
||||
|
||||
import {
|
||||
RooCodeAPI,
|
||||
|
|
@ -50,7 +51,7 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
|
|||
console.log(args)
|
||||
}
|
||||
|
||||
this.logfile = path.join(getWorkspacePath(), "roo-code-messages.log")
|
||||
this.logfile = path.join(os.tmpdir(), "roo-code-messages.log")
|
||||
} else {
|
||||
this.log = () => {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue