Fix logging middleware and comment out logging for the moment.