fix runner.Event to func, and add debug log & error log