Skip to content

Commit

Permalink
Change debug level for post and put body to info
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea authored Dec 21, 2023
1 parent 6e51c54 commit 21ca574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BridgeEmulator/flaskUI/v2restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 21ca574

Please sign in to comment.