File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,16 @@ protected function completeSignature()
78
78
*/
79
79
public function commandRecord ()
80
80
{
81
+ logger ('isset($this->record) ? ' , [isset ($ this ->record )]);
81
82
if (isset ($ this ->record )) {
83
+ logger ('use this record that exists ' , [$ this ->record ]);
82
84
return $ this ->record ;
83
85
}
84
86
87
+ logger ("this->option(command-record-id) " , [$ this ->option ('command-record-id ' )]);
85
88
if ($ id = $ this ->option ('command-record-id ' )) {
86
89
$ this ->record = CommandRecord::find ($ id );
90
+ logger ('use this existing record ' , [$ this ->record ]);
87
91
88
92
return $ this ->record ;
89
93
}
@@ -94,6 +98,7 @@ public function commandRecord()
94
98
'options ' => $ this ->options (),
95
99
'result ' => '' ,
96
100
]);
101
+ logger ('None: create Command Record ' , [$ this ->record ]);
97
102
98
103
return $ this ->record ;
99
104
}
@@ -157,6 +162,8 @@ protected function passesChecks()
157
162
}
158
163
}
159
164
165
+ logger ('$this->commandRecord()->hasStarted() ' , [$ this ->commandRecord ()]);
166
+
160
167
if ($ this ->commandRecord ()->hasStarted ()) {
161
168
throw new \Exception ('The monitored command ' . $ this ->commandRecord ()->id . ' has already started. ' );
162
169
}
You can’t perform that action at this time.
0 commit comments