From 801e4a8b5b33b14327ba74e10924111bd8ee18b8 Mon Sep 17 00:00:00 2001 From: Pixo Date: Wed, 17 Apr 2024 09:52:19 +0200 Subject: [PATCH] [_]:(fix) Add log to view device update payload for backups --- src/app/routes/backup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/routes/backup.js b/src/app/routes/backup.js index be1f4c2a..6c1c74c5 100644 --- a/src/app/routes/backup.js +++ b/src/app/routes/backup.js @@ -108,6 +108,7 @@ module.exports = (Router, Service) => { Router.patch('/backup/deviceAsFolder/:id', passportAuth, async (req, res) => { const expectedProperties = ['deviceName']; + logger.info('[BACKUP/DEVICEASFOLDER/:ID]: Received body payload %s', JSON.stringify(req.body)); const bodyFiltered = Object.keys(req.body) .filter((key) => expectedProperties.includes(key)) .reduce((obj, key) => {