chore (backend): tweak slow api call threshold
This commit is contained in:
parent
bf61dee538
commit
3380643ef2
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ export default async (
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
const after = performance.now();
|
const after = performance.now();
|
||||||
const time = after - before;
|
const time = after - before;
|
||||||
if (time > 1000) {
|
if (time > 2000) {
|
||||||
apiLogger.warn(`SLOW API CALL DETECTED: ${ep.name} (${time}ms)`);
|
apiLogger.warn(`SLOW API CALL DETECTED: ${ep.name} (${time}ms)`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue