File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -169,16 +169,16 @@ public function newFromMonolog(LogRecord $record)
169169 }
170170 if (!empty ($ this ->config ['queue ' ])) {
171171 if (empty ($ this ->config ['queue_name ' ]) && empty ($ this ->config ['queue_connection ' ])) {
172- dispatch (new SaveNewLogEvent ($ this , $ record ));
172+ dispatch (new SaveNewLogEvent ($ record ));
173173 } else if (!empty ($ this ->config ['queue_name ' ]) && !empty ($ this ->config ['queue_connection ' ])) {
174- dispatch (new SaveNewLogEvent ($ this , $ record ))
174+ dispatch (new SaveNewLogEvent ($ record ))
175175 ->onConnection ($ this ->config ['queue_connection ' ])
176176 ->onQueue ($ this ->config ['queue_name ' ]);
177177 } else if (!empty ($ this ->config ['queue_connection ' ])) {
178- dispatch (new SaveNewLogEvent ($ this , $ record ))
178+ dispatch (new SaveNewLogEvent ($ record ))
179179 ->onConnection ($ this ->config ['queue_connection ' ]);
180180 } else if (!empty ($ this ->config ['queue_name ' ])) {
181- dispatch (new SaveNewLogEvent ($ this , $ record ))
181+ dispatch (new SaveNewLogEvent ($ record ))
182182 ->onQueue ($ this ->config ['queue_name ' ]);
183183 }
184184 } else {
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ public function testSaveNewLogEventJob()
332332 formatted: "[2019-10-04T17:26:38.446827+00:00] local.INFO: test [] [] \n" ,
333333 );
334334
335- $ job = new SaveNewLogEvent ($ logToDb , $ record );
335+ $ job = new SaveNewLogEvent ($ record );
336336 $ job ->handle ();
337337
338338 $ this ->assertNotEmpty ($ logToDb ->model ()->where ('message ' , '= ' , 'job-test ' )->get ());
You can’t perform that action at this time.
0 commit comments