Log more data for troubleshooting buffer truncations.

We're seeing a lot of buffer truncations warnings in our logs and we're trying to track down the cause. Including the app_id in the logs would help.