質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -217,3 +217,77 @@
|
|
217
217
|
原因が分からない為、ご助言頂けましたら幸いです。
|
218
218
|
|
219
219
|
よろしくお願いします
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
以下は、タイムアウトした際のエラーログ(Connection.php)になります。
|
224
|
+
|
225
|
+
```
|
226
|
+
|
227
|
+
// To execute the statement, we'll simply call the callback, which will actually
|
228
|
+
|
229
|
+
// run the SQL against the PDO connection. Then we can calculate the time it
|
230
|
+
|
231
|
+
// took to execute and log the query SQL, bindings and time in our memory.
|
232
|
+
|
233
|
+
try {
|
234
|
+
|
235
|
+
$result = $callback($query, $bindings);
|
236
|
+
|
237
|
+
}
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
// If an exception occurs when attempting to run a query, we'll format the error
|
242
|
+
|
243
|
+
// message to include the bindings with SQL, which will make this exception a
|
244
|
+
|
245
|
+
// lot more helpful to the developer instead of just the database's errors.
|
246
|
+
|
247
|
+
catch (Exception $e) {
|
248
|
+
|
249
|
+
throw new QueryException(
|
250
|
+
|
251
|
+
$query, $this->prepareBindings($bindings), $e
|
252
|
+
|
253
|
+
);
|
254
|
+
|
255
|
+
}
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
return $result;
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
/**
|
266
|
+
|
267
|
+
* Log a query in the connection's query log.
|
268
|
+
|
269
|
+
*
|
270
|
+
|
271
|
+
* @param string $query
|
272
|
+
|
273
|
+
* @param array $bindings
|
274
|
+
|
275
|
+
* @param float|null $time
|
276
|
+
|
277
|
+
* @return void
|
278
|
+
|
279
|
+
*/
|
280
|
+
|
281
|
+
public function logQuery($query, $bindings, $time = null)
|
282
|
+
|
283
|
+
{
|
284
|
+
|
285
|
+
$this->event(new QueryExecuted($query, $bindings, $time, $this));
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
Arguments
|
290
|
+
|
291
|
+
"Maximum execution time of 30 seconds exceeded"
|
292
|
+
|
293
|
+
```
|
1
タグ追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|