From a62e8eebc2b8665bb735d65f34103cfa7e9a6169 Mon Sep 17 00:00:00 2001 From: Sainan Date: Tue, 18 Feb 2025 05:24:28 -0800 Subject: [PATCH] chore: log missionInventoryUpdate request body (#961) there's still so much uncertainty about this, this is vital information to have logged by default, imo Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/961 Co-authored-by: Sainan Co-committed-by: Sainan --- src/controllers/api/missionInventoryUpdateController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/api/missionInventoryUpdateController.ts b/src/controllers/api/missionInventoryUpdateController.ts index c5daaacf..39bf8180 100644 --- a/src/controllers/api/missionInventoryUpdateController.ts +++ b/src/controllers/api/missionInventoryUpdateController.ts @@ -5,6 +5,7 @@ import { IMissionInventoryUpdateRequest } from "@/src/types/requestTypes"; import { addMissionInventoryUpdates, addMissionRewards } from "@/src/services/missionInventoryUpdateService"; import { getInventory } from "@/src/services/inventoryService"; import { getInventoryResponse } from "./inventoryController"; +import { logger } from "@/src/utils/logger"; /* **** INPUT **** @@ -50,6 +51,7 @@ import { getInventoryResponse } from "./inventoryController"; export const missionInventoryUpdateController: RequestHandler = async (req, res): Promise => { const accountId = await getAccountIdForRequest(req); const missionReport = getJSONfromString((req.body as string).toString()); + logger.debug("mission report:", missionReport); const inventory = await getInventory(accountId); const inventoryUpdates = addMissionInventoryUpdates(inventory, missionReport);