From 00fd541963d5c241761f229e098e088a83610542 Mon Sep 17 00:00:00 2001 From: akemidx Date: Thu, 15 Jun 2023 15:09:14 -0400 Subject: [PATCH] improve logging clarity --- app/Importer/LicenseImporter.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Importer/LicenseImporter.php b/app/Importer/LicenseImporter.php index b943b1e863..02ef05af5c 100644 --- a/app/Importer/LicenseImporter.php +++ b/app/Importer/LicenseImporter.php @@ -38,7 +38,13 @@ class LicenseImporter extends ItemImporter ->first(); if ($license) { if (! $this->updating) { - $this->log('A matching License '.$this->item['name'].' with serial '.$this->item['serial'].' already exists'); + + if($this->item['serial'] != "") { + $this->log('A matching License ' . $this->item['name'] . ' with serial ' . $this->item['serial'] . ' already exists'); + } + else { + $this->log('A matching License ' . $this->item['name'] . ' with no serial number already exists'); + } return; }