Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Jan 12, 2020
1 parent 4715aa1 commit b9c6b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file?
const after = performance.now();
const time = after - before;
if (time > 1000) {
apiLogger.warn(`SLOW API CALL DETECTED: ${ep.name} (${time}ms)`);
apiLogger.warn(`SLOW API CALL DETECTED: ${ep.name} user=${user?.name} (${time}ms)`);
}
});
};

0 comments on commit b9c6b64

Please sign in to comment.