1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

handling errors

This commit is contained in:
Damodar Lohani 2021-08-19 14:47:38 +05:45
parent 87415c3d95
commit 71eabfff0d

View file

@ -300,6 +300,7 @@ $cli
],
];
foreach ($collections as $collection => $options) {
try {
$dbForProject->setNamespace("project_{$id}_{$options['namespace']}");
$count = $dbForProject->count($collection);
$dbForProject->setNamespace("project_{$id}_internal");
@ -355,6 +356,9 @@ $cli
]));
}
}
} catch(\Exception $e) {
Console::warning("Failed to save database counters data for project {$collection}");
}
}
}
}