Clarify logs for pirep cancel/updates
This commit is contained in:
@@ -148,10 +148,10 @@ class AcarsController extends Controller
|
|||||||
$pirep = Pirep::find($id);
|
$pirep = Pirep::find($id);
|
||||||
$this->checkCancelled($pirep);
|
$this->checkCancelled($pirep);
|
||||||
|
|
||||||
Log::debug(
|
/*Log::debug(
|
||||||
'Posting ACARS update (user: '.Auth::user()->ident.', pirep id :'.$id.'): ',
|
'Posting ACARS update (user: '.Auth::user()->ident.', pirep id :'.$id.'): ',
|
||||||
$request->post()
|
$request->post()
|
||||||
);
|
);*/
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
$positions = $request->post('positions');
|
$positions = $request->post('positions');
|
||||||
@@ -223,7 +223,7 @@ class AcarsController extends Controller
|
|||||||
$pirep = Pirep::find($id);
|
$pirep = Pirep::find($id);
|
||||||
$this->checkCancelled($pirep);
|
$this->checkCancelled($pirep);
|
||||||
|
|
||||||
Log::debug('Posting ACARS log, PIREP: '.$id, $request->post());
|
// Log::debug('Posting ACARS log, PIREP: '.$id, $request->post());
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
$logs = $request->post('logs');
|
$logs = $request->post('logs');
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ use App\Models\Pirep;
|
|||||||
use App\Models\PirepComment;
|
use App\Models\PirepComment;
|
||||||
use App\Models\PirepFare;
|
use App\Models\PirepFare;
|
||||||
use App\Models\PirepFieldValue;
|
use App\Models\PirepFieldValue;
|
||||||
|
use App\Models\User;
|
||||||
use App\Repositories\JournalRepository;
|
use App\Repositories\JournalRepository;
|
||||||
use App\Repositories\PirepRepository;
|
use App\Repositories\PirepRepository;
|
||||||
use App\Services\Finance\PirepFinanceService;
|
use App\Services\Finance\PirepFinanceService;
|
||||||
@@ -235,8 +236,12 @@ class PirepController extends Controller
|
|||||||
Log::info('PIREP Update, user '.Auth::id());
|
Log::info('PIREP Update, user '.Auth::id());
|
||||||
Log::info($request->getContent());
|
Log::info($request->getContent());
|
||||||
|
|
||||||
|
/** @var User $user */
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
|
||||||
|
/** @var Pirep $pirep */
|
||||||
$pirep = Pirep::find($pirep_id);
|
$pirep = Pirep::find($pirep_id);
|
||||||
|
|
||||||
$this->checkCancelled($pirep);
|
$this->checkCancelled($pirep);
|
||||||
|
|
||||||
$attrs = $this->parsePirep($request);
|
$attrs = $this->parsePirep($request);
|
||||||
@@ -278,6 +283,7 @@ class PirepController extends Controller
|
|||||||
{
|
{
|
||||||
Log::info('PIREP file, user '.Auth::id(), $request->post());
|
Log::info('PIREP file, user '.Auth::id(), $request->post());
|
||||||
|
|
||||||
|
/** @var User $user */
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
|
||||||
// Check if the status is cancelled...
|
// Check if the status is cancelled...
|
||||||
@@ -332,7 +338,7 @@ class PirepController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function cancel($pirep_id, Request $request)
|
public function cancel($pirep_id, Request $request)
|
||||||
{
|
{
|
||||||
Log::info('PIREP Cancel, user '.Auth::id(), $request->post());
|
Log::info('PIREP '.$pirep_id.' Cancel, user '.Auth::id(), $request->post());
|
||||||
|
|
||||||
$pirep = Pirep::find($pirep_id);
|
$pirep = Pirep::find($pirep_id);
|
||||||
$this->pirepSvc->cancel($pirep);
|
$this->pirepSvc->cancel($pirep);
|
||||||
|
|||||||
Reference in New Issue
Block a user