Fix debug prefix in log handler