Added lastRequest to error log