log error when conversion fails

This commit is contained in:
Uwe Steinmann 2023-09-01 12:10:27 +02:00
parent 3c92ebd942
commit 6c36dff064

View File

@ -85,6 +85,9 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase
}
}
} catch (ImagickException $e) {
if($this->logger) {
$this->logger->log('Conversion from '.$this->from.' to '.$this->to.' with pdf service failed: '.$e->getMessage(), PEAR_LOG_ERR);
}
$this->success = false;
return false;
}