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) {
|
export function loggerAPI(request, response, location) {
|
||||||
let old_data = "";
|
let old_data = "";
|
||||||
let body = shortenStringsInObject(response.getBody(), 300)
|
let resBody = response.getBody()
|
||||||
|
let body = shortenStringsInObject(resBody, 300)
|
||||||
try {
|
try {
|
||||||
const fileName =
|
const fileName =
|
||||||
"./app/store/logsAPI/" +
|
"./app/store/logsAPI/" +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue