Small tweak to the log handler