added exc_info to logging exception in view