From 21ca57494b4f5d97fd9b637d75251761b0928df5 Mon Sep 17 00:00:00 2001 From: Motea Marius Date: Thu, 21 Dec 2023 13:42:18 +0200 Subject: [PATCH] Change debug level for post and put body to info --- BridgeEmulator/flaskUI/v2restapi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BridgeEmulator/flaskUI/v2restapi.py b/BridgeEmulator/flaskUI/v2restapi.py index 2cd739a0b..d24a4ce17 100644 --- a/BridgeEmulator/flaskUI/v2restapi.py +++ b/BridgeEmulator/flaskUI/v2restapi.py @@ -209,7 +209,7 @@ def get(self): return {}, 200, {'hue-application-id': request.headers["hue-application-key"]} else: - logging.debug("Auth 403") + logging.info("Auth 403") return '', 403 @@ -376,7 +376,7 @@ def post(self, resource): if "user" not in authorisation: return "", 403 postDict = request.get_json(force=True) - logging.debug(postDict) + logging.info(postDict) newObject = None if resource == "scene": new_object_id = nextFreeId(bridgeConfig, "scenes") @@ -522,7 +522,7 @@ def put(self, resource, resourceid): if "user" not in authorisation: return "", 403 putDict = request.get_json(force=True) - logging.debug(putDict) + logging.info(putDict) object = getObject(resource, resourceid) if resource == "light": object.setV2State(putDict)