diff --git a/src/libs/Middleware/Logging.ts b/src/libs/Middleware/Logging.ts index 97f4a21866c5..19d767c8a4b1 100644 --- a/src/libs/Middleware/Logging.ts +++ b/src/libs/Middleware/Logging.ts @@ -35,10 +35,11 @@ function logRequestDetails(message: string, request: Request, response?: Respons } const Logging: Middleware = (response, request) => { + const startTime = Date.now(); logRequestDetails('Making API request', request); return response .then((data) => { - logRequestDetails('Finished API request', request, data); + logRequestDetails(`Finished API request in ${Date.now() - startTime}ms`, request, data); return data; }) .catch((error) => {