Added var onFinished to request logger