Add logging for discarding