bug fix: log bodies correctly