fix the bug not to set debug log.