Add status parameter to import completion on failure
Updates calls to importLogModel->completeImport in exception handlers to include a 'failed' status parameter, ensuring clearer logging of failed import operations.
This commit is contained in:
@@ -315,7 +315,7 @@ class TldRegistryService
|
||||
$this->importLogModel->completeImport($logId, $stats);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$this->importLogModel->completeImport($logId, $stats, $e->getMessage());
|
||||
$this->importLogModel->completeImport($logId, $stats, 'failed', $e->getMessage());
|
||||
throw $e;
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ class TldRegistryService
|
||||
$this->importLogModel->completeImport($logId, $stats);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$this->importLogModel->completeImport($logId, $stats, $e->getMessage());
|
||||
$this->importLogModel->completeImport($logId, $stats, 'failed', $e->getMessage());
|
||||
throw $e;
|
||||
}
|
||||
|
||||
@@ -435,7 +435,7 @@ class TldRegistryService
|
||||
$this->importLogModel->completeImport($logId, $stats);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$this->importLogModel->completeImport($logId, $stats, $e->getMessage());
|
||||
$this->importLogModel->completeImport($logId, $stats, 'failed', $e->getMessage());
|
||||
throw $e;
|
||||
}
|
||||
|
||||
@@ -1982,7 +1982,7 @@ class TldRegistryService
|
||||
$this->importLogModel->completeImport($logId, $stats);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$this->importLogModel->completeImport($logId, $stats, $e->getMessage());
|
||||
$this->importLogModel->completeImport($logId, $stats, 'failed', $e->getMessage());
|
||||
throw $e;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user