add middleware writeLog
This commit is contained in:
parent
64a2fa5a54
commit
bddb56f41f
|
|
@ -30,7 +30,8 @@ const shortenStringsInObject = (obj, maxLength) => {
|
|||
|
||||
export function loggerAPI(request, response, location) {
|
||||
let old_data = "";
|
||||
let body = shortenStringsInObject(response.getBody(), 300)
|
||||
let resBody = response.getBody()
|
||||
let body = shortenStringsInObject(resBody, 300)
|
||||
try {
|
||||
const fileName =
|
||||
"./app/store/logsAPI/" +
|
||||
|
|
|
|||
Loading…
Reference in New Issue