chore: rename project to clawdbot
This commit is contained in:
@@ -71,10 +71,10 @@ describe("logger helpers", () => {
|
||||
resetLogger();
|
||||
setLoggerOverride({}); // force defaults regardless of user config
|
||||
const today = new Date().toISOString().slice(0, 10);
|
||||
const todayPath = path.join(DEFAULT_LOG_DIR, `clawdis-${today}.log`);
|
||||
const todayPath = path.join(DEFAULT_LOG_DIR, `clawdbot-${today}.log`);
|
||||
|
||||
// create an old file to be pruned
|
||||
const oldPath = path.join(DEFAULT_LOG_DIR, "clawdis-2000-01-01.log");
|
||||
const oldPath = path.join(DEFAULT_LOG_DIR, "clawdbot-2000-01-01.log");
|
||||
fs.mkdirSync(DEFAULT_LOG_DIR, { recursive: true });
|
||||
fs.writeFileSync(oldPath, "old");
|
||||
fs.utimesSync(oldPath, new Date(0), new Date(0));
|
||||
@@ -91,7 +91,7 @@ describe("logger helpers", () => {
|
||||
});
|
||||
|
||||
function pathForTest() {
|
||||
const file = path.join(os.tmpdir(), `clawdis-log-${crypto.randomUUID()}.log`);
|
||||
const file = path.join(os.tmpdir(), `clawdbot-log-${crypto.randomUUID()}.log`);
|
||||
fs.mkdirSync(path.dirname(file), { recursive: true });
|
||||
return file;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user