Log handler: fix warning