remove log message

This commit is contained in:
Nabeel Shahzad 2017-12-31 12:56:17 -06:00
parent 24ca00a325
commit e8108597c4

View File

@ -26,23 +26,20 @@ class DashboardController extends AppBaseController
*/ */
public function index() public function index()
{ {
$pireps = $this->pirepRepo->recent();
$users = $this->userRepo->recent(); $users = $this->userRepo->recent();
$pireps = $this->pirepRepo->recent();
$last_pirep = null; $last_pirep = null;
$user = Auth::user(); $user = Auth::user();
try { try {
$last_pirep = $this->pirepRepo->find($user->last_pirep_id); $last_pirep = $this->pirepRepo->find($user->last_pirep_id);
} catch(\Exception $e) { } catch(\Exception $e) { }
Log::info('No last PIREP for ' . $user->pilot_id);
}
return $this->view('dashboard.index', [ return $this->view('dashboard.index', [
'user' => $user, 'user' => $user,
'pireps' => $pireps, 'pireps' => $pireps,
'users' => $users, 'users' => $users,
'last_pirep' => $last_pirep, 'last_pirep' => $last_pirep,
]); ]);
} }