Logging IncompleteRead error