Adjust logging levels to reduce verbosity
Changed logging levels from LogInformation to LogDebug in PdfAttachmentExtractorService and PdfResultPackageService. This includes logs for PDF conformity levels, ZUGFeRD Guideline-IDs, saved attachment details, and result report discovery. These changes aim to reduce log verbosity in production environments by moving less critical information to the debug level.
This commit is contained in:
@@ -38,7 +38,7 @@ public class PdfAttachmentExtractorService(
|
||||
};
|
||||
result.PdfAWarning = compatibility == PdfACompatibility.None;
|
||||
|
||||
logger.LogInformation(
|
||||
logger.LogDebug(
|
||||
"PDF '{FileName}': Konformität = {Level}",
|
||||
sourceFileName, result.PdfALevel);
|
||||
|
||||
@@ -50,7 +50,7 @@ public class PdfAttachmentExtractorService(
|
||||
{
|
||||
result.ZugferdGuidelineId = ExtractGuidelineId(xmpData);
|
||||
if (!string.IsNullOrEmpty(result.ZugferdGuidelineId))
|
||||
logger.LogInformation(
|
||||
logger.LogDebug(
|
||||
"PDF '{FileName}': Guideline-ID = {GuidelineId}",
|
||||
sourceFileName, result.ZugferdGuidelineId);
|
||||
}
|
||||
@@ -105,7 +105,7 @@ public class PdfAttachmentExtractorService(
|
||||
|
||||
var isZugferd = IsZugferdXml(attachment.FileName);
|
||||
|
||||
logger.LogInformation(
|
||||
logger.LogDebug(
|
||||
" → Gespeichert: '{FileName}' ({Bytes} Bytes){Zugferd}",
|
||||
safeFileName, data.Length,
|
||||
isZugferd ? " [ZUGFeRD/Factur-X XML]" : string.Empty);
|
||||
|
||||
@@ -21,7 +21,7 @@ public class PdfResultPackageService(
|
||||
return null;
|
||||
}
|
||||
|
||||
logger.LogInformation(
|
||||
logger.LogDebug(
|
||||
"Ergebnisbericht gefunden: '{ReportPath}'.", reportPath);
|
||||
|
||||
// 2. Ausgabepfad bestimmen
|
||||
|
||||
Reference in New Issue
Block a user