fix a possible synchronization issue in pendingPollEvent and adjust logging levels