How to log couchbase lite request body


Hi, we are trying to debug an issue with couchbase lite and sync gateway. We want to see what documents the device is trying to sync to sync gateway so we enabled request body logging in nginx. For normal POST requests to other endpoints on our server the data is human readable, but when we try to log couchbase lite POST requests it comes out in some sort of encoding. Is there a way for us to decode it or log in sync gateway the request bodies?

UPDATE: Nevermind, it was just gzipped. We used a simple python script to unzip it and now we can read what is being sent to sync gateway from the client.