Logging headers the right way