mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
change logs to debug
This commit is contained in:
@@ -61,7 +61,7 @@ export async function cleanUpOldLogs(orgId: string, retentionDays: number) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
logger.info(
|
logger.debug(
|
||||||
`Cleaned up ${deleteResult.changes} access audit logs older than ${retentionDays} days`
|
`Cleaned up ${deleteResult.changes} access audit logs older than ${retentionDays} days`
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export async function cleanUpOldLogs(orgId: string, retentionDays: number) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
logger.info(
|
logger.debug(
|
||||||
`Cleaned up ${deleteResult.changes} action audit logs older than ${retentionDays} days`
|
`Cleaned up ${deleteResult.changes} action audit logs older than ${retentionDays} days`
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import logger from "@server/logger";
|
|||||||
import { and, eq, lt } from "drizzle-orm";
|
import { and, eq, lt } from "drizzle-orm";
|
||||||
import cache from "@server/lib/cache";
|
import cache from "@server/lib/cache";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Reasons:
|
Reasons:
|
||||||
100 - Allowed by Rule
|
100 - Allowed by Rule
|
||||||
@@ -69,7 +69,7 @@ export async function cleanUpOldLogs(orgId: string, retentionDays: number) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
logger.info(
|
logger.debug(
|
||||||
`Cleaned up ${deleteResult.changes} request audit logs older than ${retentionDays} days`
|
`Cleaned up ${deleteResult.changes} request audit logs older than ${retentionDays} days`
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user