| @@ 323-325 (lines=3) @@ | ||
| 320 | ); |
|
| 321 | } catch (\MongoException $e) { |
|
| 322 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 323 | if ($cb !== null) { |
|
| 324 | $cb([ |
|
| 325 | '$err' => $e->getMessage(), |
|
| 326 | '$query' => $o, |
|
| 327 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 328 | ]); |
|
| @@ 491-493 (lines=3) @@ | ||
| 488 | ); |
|
| 489 | } catch (\MongoException $e) { |
|
| 490 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 491 | if ($cb !== null) { |
|
| 492 | $cb([ |
|
| 493 | '$err' => $e->getMessage(), |
|
| 494 | '$query' => $query, |
|
| 495 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 496 | ]); |
|
| @@ 410-412 (lines=3) @@ | ||
| 407 | ); |
|
| 408 | } catch (\MongoException $e) { |
|
| 409 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 410 | if ($cb !== null) { |
|
| 411 | $cb([ |
|
| 412 | '$err' => $e->getMessage(), |
|
| 413 | '$query' => $o, |
|
| 414 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 415 | ]); |
|
| @@ 540-542 (lines=3) @@ | ||
| 537 | ); |
|
| 538 | } catch (\MongoException $e) { |
|
| 539 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 540 | if ($cb !== null) { |
|
| 541 | $cb([ |
|
| 542 | '$err' => $e->getMessage(), |
|
| 543 | '$query' => $query, |
|
| 544 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 545 | ]); |
|
| @@ 585-587 (lines=3) @@ | ||
| 582 | ); |
|
| 583 | } catch (\MongoException $e) { |
|
| 584 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 585 | if ($cb !== null) { |
|
| 586 | $cb([ |
|
| 587 | '$err' => $e->getMessage(), |
|
| 588 | '$query' => $query, |
|
| 589 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 590 | ]); |
|
| @@ 762-764 (lines=3) @@ | ||
| 759 | ); |
|
| 760 | } catch (\MongoException $e) { |
|
| 761 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 762 | if ($cb !== null) { |
|
| 763 | $cb([ |
|
| 764 | '$err' => $e->getMessage(), |
|
| 765 | '$query' => $query, |
|
| 766 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 767 | ]); |
|
| @@ 818-820 (lines=3) @@ | ||
| 815 | ); |
|
| 816 | } catch (\MongoException $e) { |
|
| 817 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 818 | if ($cb !== null) { |
|
| 819 | $cb([ |
|
| 820 | '$err' => $e->getMessage(), |
|
| 821 | '$query' => $query, |
|
| 822 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 823 | ]); |
|
| @@ 1008-1010 (lines=3) @@ | ||
| 1005 | ); |
|
| 1006 | } catch (\MongoException $e) { |
|
| 1007 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 1008 | if ($cb !== null) { |
|
| 1009 | $cb([ |
|
| 1010 | '$err' => $e->getMessage(), |
|
| 1011 | '$query' => $query, |
|
| 1012 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 1013 | ]); |
|
| @@ 1084-1086 (lines=3) @@ | ||
| 1081 | ); |
|
| 1082 | } catch (\MongoException $e) { |
|
| 1083 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 1084 | if ($cb !== null) { |
|
| 1085 | $cb([ |
|
| 1086 | '$err' => $e->getMessage(), |
|
| 1087 | '$query' => $query, |
|
| 1088 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 1089 | ]); |
|
| @@ 1137-1139 (lines=3) @@ | ||
| 1134 | ); |
|
| 1135 | } catch (\MongoException $e) { |
|
| 1136 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 1137 | if ($cb !== null) { |
|
| 1138 | $cb([ |
|
| 1139 | '$err' => $e->getMessage(), |
|
| 1140 | '$query' => $query, |
|
| 1141 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 1142 | ]); |
|
| @@ 1609-1611 (lines=3) @@ | ||
| 1606 | ); |
|
| 1607 | } catch (\MongoException $e) { |
|
| 1608 | Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString()); |
|
| 1609 | if ($cb !== null) { |
|
| 1610 | $cb([ |
|
| 1611 | '$err' => $e->getMessage(), |
|
| 1612 | '$query' => $query, |
|
| 1613 | '$fields' => isset($p['fields']) ? $p['fields'] : null |
|
| 1614 | ]); |
|