Add keep-alive log printing.