[PATCH 2/3] logging: read all bytes on EOF in event handler