[utils] Extract headers for log