Skip to content

A free open source IT asset/license management system

Log non-compliant barcode error as debug message

Marcus Moore724c054838eb
diff --git a/app/Models/Labels/Label.php b/app/Models/Labels/Label.php
index 69f67f6760..b727c1cb18 100644
--- a/app/Models/Labels/Label.php
+++ b/app/Models/Labels/Label.php
@@ -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);
}
}