From e876fb10e743a5171af42fcc9c0f19dd543087a9 Mon Sep 17 00:00:00 2001 From: Gard Opsahl Skaare Date: Wed, 28 Aug 2024 12:58:12 +0200 Subject: [PATCH] Reduce log spam in CPA-sync --- .../main/kotlin/no/nav/emottak/smtp/cpasync/CpaSyncService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smtp-listeners/src/main/kotlin/no/nav/emottak/smtp/cpasync/CpaSyncService.kt b/smtp-listeners/src/main/kotlin/no/nav/emottak/smtp/cpasync/CpaSyncService.kt index 01781c8f..54c672b4 100644 --- a/smtp-listeners/src/main/kotlin/no/nav/emottak/smtp/cpasync/CpaSyncService.kt +++ b/smtp-listeners/src/main/kotlin/no/nav/emottak/smtp/cpasync/CpaSyncService.kt @@ -51,7 +51,7 @@ class CpaSyncService(private val cpaRepoClient: HttpClient, private val nfsConne if (entry.filename.endsWith(".xml")) { return true } - log.warn("${entry.filename} is ignored. Invalid file ending") + log.debug("${entry.filename} is ignored. Invalid file ending") return false } @@ -98,7 +98,7 @@ class CpaSyncService(private val cpaRepoClient: HttpClient, private val nfsConne val unzippedCpaContent = unzipCpaContent(entry.value.content) cpaRepoClient.putCPAinCPARepo(unzippedCpaContent, entry.value.timestamp) } else { - log.info("Skipping upsert for unmodified CPA: ${entry.key} - ${entry.value.timestamp}") + log.debug("Skipping upsert for unmodified CPA: ${entry.key} - ${entry.value.timestamp}") } } }