logging didn't work on chunked output