Xiangzhe
9e86a738ed
perf(logging): bound call-log rotation work ( #10125 )
...
* perf(logging): bound call-log rotation work
* refactor(usage): extract call-log rotation/pruning from callLogs.ts to satisfy the file-size gate
Move the bounded rotation scheduler, orphan-artifact scanner, and row/overflow
pruning helpers (deleteCallLogsBefore, trimCallLogsToMaxRows,
cleanupOverflowCallLogFiles, cleanupOrphanCallLogFiles, rotateCallLogs,
scheduleCallLogRotation) into a new src/lib/usage/callLogRotation.ts module.
Pure extraction, no behavior change — callLogs.ts re-exports the same public
symbols so existing importers (usageDb.ts, compliance/index.ts, the
purge-logs route, and the rotation/cap test suite) are unaffected. Brings
callLogs.ts from 1108 to 787 lines, under the 1000-line file-size cap.
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com >
---------
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com >
2026-08-13 07:52:46 -03:00
..
2026-08-12 16:19:25 -03:00
2026-06-19 06:49:01 -03:00
2026-07-20 17:53:04 -03:00
2026-08-13 00:02:25 -03:00
2026-08-12 08:41:03 -03:00
2026-06-30 06:54:29 -03:00
2026-07-02 10:47:13 -03:00
2026-06-30 06:54:29 -03:00
2026-06-29 16:51:03 -03:00
2026-08-11 04:25:03 -03:00
2026-07-13 09:12:40 -03:00
2026-08-07 20:51:59 -03:00
2026-07-29 15:18:55 -03:00
2026-07-13 09:12:40 -03:00
2026-08-13 00:41:03 -03:00
2026-08-11 04:25:23 -03:00
2026-06-27 09:07:12 -03:00
2026-08-12 02:13:41 -03:00
2026-07-29 15:18:55 -03:00
2026-08-12 08:40:18 -03:00
2026-08-07 18:09:00 -03:00
2026-08-11 04:31:24 -03:00
2026-08-13 07:52:12 -03:00
2026-07-04 13:00:30 -03:00
2026-07-29 15:18:55 -03:00
2026-08-10 18:16:08 -03:00
2026-08-12 02:13:41 -03:00
2026-07-02 10:47:13 -03:00
2026-06-29 16:51:03 -03:00
2026-07-29 15:18:55 -03:00
2026-06-30 06:54:29 -03:00
2026-08-13 03:43:44 -03:00
2026-07-07 13:14:06 -03:00
2026-07-29 15:18:55 -03:00
2026-08-05 21:43:16 -03:00
2026-07-29 15:18:55 -03:00
2026-08-09 09:54:47 -03:00
2026-08-09 09:54:47 -03:00
2026-07-29 15:18:55 -03:00
2026-08-11 04:30:38 -03:00
2026-07-02 10:47:13 -03:00
2026-08-12 16:54:50 -03:00
2026-08-05 08:44:59 -03:00
2026-06-30 06:54:29 -03:00
2026-08-12 08:40:18 -03:00
2026-06-03 06:45:04 -03:00
2026-05-28 17:19:48 -03:00
2026-08-07 20:54:32 -03:00
2026-06-30 06:54:29 -03:00
2026-08-13 07:52:32 -03:00
2026-08-12 08:41:03 -03:00
2026-08-04 21:36:00 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-08-11 04:25:13 -03:00
2026-08-10 20:10:12 -03:00
2026-07-29 15:18:55 -03:00
2026-08-11 04:30:29 -03:00
2026-07-29 15:18:55 -03:00
2026-02-26 15:11:40 +00:00
2026-08-12 07:56:35 -03:00
2026-06-20 14:55:24 -03:00
2026-08-10 18:15:16 -03:00
2026-08-11 04:30:38 -03:00
2026-04-17 09:00:32 -03:00
2026-08-11 10:29:28 -03:00
2026-08-05 16:07:31 -03:00
2026-08-09 15:16:55 -03:00
2026-04-23 16:57:43 -03:00
2026-08-13 07:52:46 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-08-04 14:34:02 -03:00
2026-08-07 20:53:21 -03:00
2026-06-29 16:51:03 -03:00
2026-04-16 05:26:17 -03:00
2026-05-29 12:44:29 -03:00
2026-05-09 12:42:59 +00:00
2026-06-17 02:43:21 -03:00
2026-07-29 15:18:55 -03:00
2026-04-01 08:42:03 -03:00
2026-03-29 14:37:55 +02:00
2026-03-17 04:24:46 -03:00
2026-08-09 09:52:28 -03:00
2026-07-29 15:18:55 -03:00
2026-05-29 12:44:29 -03:00
2026-05-29 12:44:29 -03:00
2026-07-29 15:18:55 -03:00
2026-03-04 19:35:38 -03:00
2026-08-05 22:41:38 -03:00
2026-06-26 02:51:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-07-29 15:18:55 -03:00
2026-07-29 15:18:55 -03:00
2026-08-11 09:53:39 -03:00
2026-04-01 08:45:39 +07:00
2026-08-09 09:54:47 -03:00
2026-07-29 15:18:55 -03:00
2026-08-13 04:02:34 -03:00
2026-07-29 15:18:55 -03:00
2026-08-13 04:02:42 -03:00
2026-08-09 09:55:02 -03:00
2026-04-24 13:20:59 -03:00
2026-05-26 23:51:47 -03:00
2026-08-06 00:09:18 -03:00
2026-07-29 15:18:55 -03:00
2026-08-13 00:02:25 -03:00
2026-08-09 09:55:16 -03:00
2026-08-13 00:02:25 -03:00
2026-08-11 09:59:45 -03:00
2026-08-11 09:59:45 -03:00
2026-04-30 01:27:03 -03:00
2026-06-03 06:45:04 -03:00
2026-05-01 08:36:07 -03:00
2026-05-01 08:36:07 -03:00
2026-06-01 23:13:19 -03:00
2026-08-09 09:52:59 -03:00
2026-08-09 09:55:16 -03:00
2026-07-29 15:18:55 -03:00
2026-06-29 08:40:06 -03:00
2026-08-04 14:34:17 -03:00
2026-06-29 16:51:03 -03:00
2026-07-29 15:18:55 -03:00
2026-08-11 09:16:23 -03:00
2026-06-13 17:27:40 -03:00
2026-08-07 20:54:11 -03:00
2026-06-20 14:55:24 -03:00
2026-08-11 04:31:24 -03:00
2026-07-29 15:18:55 -03:00
2026-08-11 04:31:24 -03:00
2026-02-18 14:43:57 -03:00
2026-02-18 00:02:15 -03:00
2026-07-02 10:47:13 -03:00
2026-06-09 15:56:24 -03:00
2026-08-07 20:53:21 -03:00
2026-07-29 15:18:55 -03:00