| @@ 319-321 (lines=3) @@ | ||
| 316 | ); |
|
| 317 | } catch (\MongoException $e) { |
|
| 318 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 319 | if ($cb !== null) { |
|
| 320 | $cb([ |
|
| 321 | '$err' => $e->getMessage(), |
|
| 322 | '$query' => $o, |
|
| 323 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 324 | ]); |
|
| @@ 406-408 (lines=3) @@ | ||
| 403 | ); |
|
| 404 | } catch (\MongoException $e) { |
|
| 405 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 406 | if ($cb !== null) { |
|
| 407 | $cb([ |
|
| 408 | '$err' => $e->getMessage(), |
|
| 409 | '$query' => $o, |
|
| 410 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 411 | ]); |
|
| @@ 487-489 (lines=3) @@ | ||
| 484 | ); |
|
| 485 | } catch (\MongoException $e) { |
|
| 486 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 487 | if ($cb !== null) { |
|
| 488 | $cb([ |
|
| 489 | '$err' => $e->getMessage(), |
|
| 490 | '$query' => $query, |
|
| 491 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 492 | ]); |
|
| @@ 536-538 (lines=3) @@ | ||
| 533 | ); |
|
| 534 | } catch (\MongoException $e) { |
|
| 535 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 536 | if ($cb !== null) { |
|
| 537 | $cb([ |
|
| 538 | '$err' => $e->getMessage(), |
|
| 539 | '$query' => $query, |
|
| 540 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 541 | ]); |
|
| @@ 581-583 (lines=3) @@ | ||
| 578 | ); |
|
| 579 | } catch (\MongoException $e) { |
|
| 580 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 581 | if ($cb !== null) { |
|
| 582 | $cb([ |
|
| 583 | '$err' => $e->getMessage(), |
|
| 584 | '$query' => $query, |
|
| 585 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 586 | ]); |
|
| @@ 758-760 (lines=3) @@ | ||
| 755 | ); |
|
| 756 | } catch (\MongoException $e) { |
|
| 757 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 758 | if ($cb !== null) { |
|
| 759 | $cb([ |
|
| 760 | '$err' => $e->getMessage(), |
|
| 761 | '$query' => $query, |
|
| 762 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 763 | ]); |
|
| @@ 814-816 (lines=3) @@ | ||
| 811 | ); |
|
| 812 | } catch (\MongoException $e) { |
|
| 813 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 814 | if ($cb !== null) { |
|
| 815 | $cb([ |
|
| 816 | '$err' => $e->getMessage(), |
|
| 817 | '$query' => $query, |
|
| 818 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 819 | ]); |
|
| @@ 1004-1006 (lines=3) @@ | ||
| 1001 | ); |
|
| 1002 | } catch (\MongoException $e) { |
|
| 1003 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 1004 | if ($cb !== null) { |
|
| 1005 | $cb([ |
|
| 1006 | '$err' => $e->getMessage(), |
|
| 1007 | '$query' => $query, |
|
| 1008 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 1009 | ]); |
|
| @@ 1080-1082 (lines=3) @@ | ||
| 1077 | ); |
|
| 1078 | } catch (\MongoException $e) { |
|
| 1079 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 1080 | if ($cb !== null) { |
|
| 1081 | $cb([ |
|
| 1082 | '$err' => $e->getMessage(), |
|
| 1083 | '$query' => $query, |
|
| 1084 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 1085 | ]); |
|
| @@ 1133-1135 (lines=3) @@ | ||
| 1130 | ); |
|
| 1131 | } catch (\MongoException $e) { |
|
| 1132 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 1133 | if ($cb !== null) { |
|
| 1134 | $cb([ |
|
| 1135 | '$err' => $e->getMessage(), |
|
| 1136 | '$query' => $query, |
|
| 1137 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 1138 | ]); |
|
| @@ 1605-1607 (lines=3) @@ | ||
| 1602 | ); |
|
| 1603 | } catch (\MongoException $e) { |
|
| 1604 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 1605 | if ($cb !== null) { |
|
| 1606 | $cb([ |
|
| 1607 | '$err' => $e->getMessage(), |
|
| 1608 | '$query' => $query, |
|
| 1609 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 1610 | ]); |
|