Logs grew forever. A daily prune-logs cron now deletes entries older than the app setting logs_keep_days (Settings > General, super admin; default AppData.LogsKeepDays, 90), with an index on logs.created_at. Co-Authored-By: Claude Opus 5.5 <[email protected]>
33 lines
583 B
TypeScript
33 lines
583 B
TypeScript
export const LogCategories = [
|
|
{
|
|
title: "Auth",
|
|
value: "auth",
|
|
},
|
|
{
|
|
title: "WebSocket",
|
|
value: "websocket",
|
|
},
|
|
{
|
|
title: "Cron",
|
|
value: "cron",
|
|
},
|
|
{
|
|
title: "Hook",
|
|
value: "hook",
|
|
},
|
|
{
|
|
title: "System",
|
|
value: "system",
|
|
},
|
|
{
|
|
title: "Error",
|
|
value: "error",
|
|
},
|
|
] as const;
|
|
|
|
/**
|
|
* The app setting (Settings > General) for how many days logs are kept,
|
|
* else `AppData.LogsKeepDays`.
|
|
*/
|
|
export const LogsKeepDaysSettingKey = "logs_keep_days";
|