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)
169
169
}
170
170
if (!empty ($ this ->config ['queue ' ])) {
171
171
if (empty ($ this ->config ['queue_name ' ]) && empty ($ this ->config ['queue_connection ' ])) {
172
- dispatch (new SaveNewLogEvent ($ this , $ record ));
172
+ dispatch (new SaveNewLogEvent ($ record ));
173
173
} else if (!empty ($ this ->config ['queue_name ' ]) && !empty ($ this ->config ['queue_connection ' ])) {
174
- dispatch (new SaveNewLogEvent ($ this , $ record ))
174
+ dispatch (new SaveNewLogEvent ($ record ))
175
175
->onConnection ($ this ->config ['queue_connection ' ])
176
176
->onQueue ($ this ->config ['queue_name ' ]);
177
177
} else if (!empty ($ this ->config ['queue_connection ' ])) {
178
- dispatch (new SaveNewLogEvent ($ this , $ record ))
178
+ dispatch (new SaveNewLogEvent ($ record ))
179
179
->onConnection ($ this ->config ['queue_connection ' ]);
180
180
} else if (!empty ($ this ->config ['queue_name ' ])) {
181
- dispatch (new SaveNewLogEvent ($ this , $ record ))
181
+ dispatch (new SaveNewLogEvent ($ record ))
182
182
->onQueue ($ this ->config ['queue_name ' ]);
183
183
}
184
184
} else {
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ public function testSaveNewLogEventJob()
332
332
formatted: "[2019-10-04T17:26:38.446827+00:00] local.INFO: test [] [] \n" ,
333
333
);
334
334
335
- $ job = new SaveNewLogEvent ($ logToDb , $ record );
335
+ $ job = new SaveNewLogEvent ($ record );
336
336
$ job ->handle ();
337
337
338
338
$ this ->assertNotEmpty ($ logToDb ->model ()->where ('message ' , '= ' , 'job-test ' )->get ());
You can’t perform that action at this time.
0 commit comments