Skip to content

Commit

Permalink
chore: move agent log filepath. (TabbyML#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes authored Jul 3, 2023
1 parent 2a01fdf commit 9ca7d11
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion clients/tabby-agent/dist/cli.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/tabby-agent/dist/cli.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/tabby-agent/dist/index.global.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions clients/tabby-agent/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/tabby-agent/dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions clients/tabby-agent/dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28477,10 +28477,10 @@ var init_logger = __esm({
init_env();
stream = isBrowser ? null : (
/**
* Default rotating file locate at `~/.tabby/agent-logs/`.
* Default rotating file locate at `~/.tabby/agent/logs/`.
*/
(init_es(), __toCommonJS(es_exports)).createStream("tabby-agent.log", {
path: (init_path(), __toCommonJS(path_exports)).join((init_os(), __toCommonJS(os_exports)).homedir(), ".tabby", "agent-logs"),
path: (init_path(), __toCommonJS(path_exports)).join((init_os(), __toCommonJS(os_exports)).homedir(), ".tabby", "agent", "logs"),
size: "10M",
interval: "1d"
})
Expand Down
2 changes: 1 addition & 1 deletion clients/tabby-agent/dist/index.mjs.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions clients/tabby-agent/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { isBrowser } from "./env";
const stream = isBrowser
? null
: /**
* Default rotating file locate at `~/.tabby/agent-logs/`.
* Default rotating file locate at `~/.tabby/agent/logs/`.
*/
require("rotating-file-stream").createStream("tabby-agent.log", {
path: require("path").join(require("os").homedir(), ".tabby", "agent-logs"),
path: require("path").join(require("os").homedir(), ".tabby", "agent", "logs"),
size: "10M",
interval: "1d",
});
Expand Down

0 comments on commit 9ca7d11

Please sign in to comment.