chore (backend): tweak slow api call threshold

This commit is contained in:
naskya 2024-07-21 12:12:00 +09:00
parent bf61dee538
commit 3380643ef2
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -202,7 +202,7 @@ export default async (
.finally(() => {
const after = performance.now();
const time = after - before;
if (time > 1000) {
if (time > 2000) {
apiLogger.warn(`SLOW API CALL DETECTED: ${ep.name} (${time}ms)`);
}
});