chore: core 日志轮转 20m×5;device push 日志补本地文件名

This commit is contained in:
2026-11-19 21:34:44 +08:00
parent 92f0f16070
commit 1fd04e2607
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -885,7 +885,7 @@ async function toolDevice(ctx, args) {
const abs = resolveInTask(ctx.taskDir, local, fsRoot(ctx));
const t0 = Date.now();
const r = await devices.push({ device: name, localPath: abs, remotePath: remote });
log.info('device', `push ${name} ${remote} ${devBytes(r.bytes)} ${Date.now() - t0}ms`);
log.info('device', `push ${name} ${remote} ← ${path.relative(ctx.taskDir, abs) || path.basename(abs)} ${devBytes(r.bytes)} ${Date.now() - t0}ms`);
return `已推到 ${name}:${remote}(${r.bytes} 字节,sha256 ${r.sha256.slice(0, 16)}…)`;
} catch (e) {
log.warn('device', `push ${name} ${remote} 失败:${e.message}`);