Fix header debug output

Replace `[object Object]` with several fine-grained logging options.