Merge pull request #13695 from marcusmoore/bug/sc-23795-to-master

Log non-compliant barcode error as debug message
This commit is contained in:
snipe 2023-10-02 22:22:26 +01:00 committed by GitHub
commit 8384786e8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -374,7 +374,7 @@ abstract class Label
try {
$pdf->write1DBarcode($value, $type, $x, $y, $width, $height, null, ['stretch'=>true]);
} catch (\Exception|TypeError $e) {
\Log::error('The 1D barcode ' . $value . ' is not compliant with the barcode type '. $type);
\Log::debug('The 1D barcode ' . $value . ' is not compliant with the barcode type '. $type);
}
}