From 1de118fa03df806bb6170f4faec0e38c0d115de3 Mon Sep 17 00:00:00 2001
From: ZMai <zmai@slb.com>
Date: Thu, 13 Jul 2023 13:22:58 -0500
Subject: [PATCH] Change the log level for augmenter related errors

---
 .../osdu/indexer/service/IndexSchemaServiceImpl.java          | 2 +-
 .../opengroup/osdu/indexer/service/IndexerServiceImpl.java    | 4 ++--
 .../indexer/service/PropertyConfigurationsServiceImpl.java    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexSchemaServiceImpl.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexSchemaServiceImpl.java
index f672ef601..31b63bafb 100644
--- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexSchemaServiceImpl.java
+++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexSchemaServiceImpl.java
@@ -175,7 +175,7 @@ public class IndexSchemaServiceImpl implements IndexSchemaService {
                         }
                     }
                     catch(Exception ex) {
-                        log.warning(String.format("Augmenter: Failed to merge schema of the extended properties for kind: '%s'", kind), ex);
+                        log.error(String.format("Augmenter: Failed to merge schema of the extended properties for kind: '%s'", kind), ex);
                     }
                 }
 
diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexerServiceImpl.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexerServiceImpl.java
index 56d741c8d..529d9f15a 100644
--- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexerServiceImpl.java
+++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexerServiceImpl.java
@@ -166,7 +166,7 @@ public class IndexerServiceImpl implements IndexerService {
                     }
                 }
                 catch(Exception ex) {
-                    jaxRsDpsLog.warning("Augmenter: Failed to update associated records", ex);
+                    jaxRsDpsLog.error("Augmenter: Failed to update associated records", ex);
                 }
             }
         } catch (IOException e) {
@@ -363,7 +363,7 @@ public class IndexerServiceImpl implements IndexerService {
                         }
                     }
                     catch(Exception ex) {
-                        jaxRsDpsLog.warning(String.format("Augmenter: Failed to merge extended properties of the record with id: '%s' and kind: '%s'", storageRecord.getId(), storageRecord.getKind()), ex);
+                        jaxRsDpsLog.error(String.format("Augmenter: Failed to merge extended properties of the record with id: '%s' and kind: '%s'", storageRecord.getId(), storageRecord.getKind()), ex);
                     }
                 }
 
diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/PropertyConfigurationsServiceImpl.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/PropertyConfigurationsServiceImpl.java
index a52d4c690..d7aa52e00 100644
--- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/PropertyConfigurationsServiceImpl.java
+++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/PropertyConfigurationsServiceImpl.java
@@ -130,7 +130,7 @@ public class PropertyConfigurationsServiceImpl implements PropertyConfigurations
                     // Log for debug
                     if(configuration.hasInvalidConfigurations()) {
                         String msg = String.format("PropertyConfigurations: it has invalid PropertyConfiguration for configurations with name '%s':", configuration.getName());
-                        this.jaxRsDpsLog.debug(msg);
+                        this.jaxRsDpsLog.warning(msg);
                     }
                 }
                 else {
@@ -145,7 +145,7 @@ public class PropertyConfigurationsServiceImpl implements PropertyConfigurations
                         msgBuilder.append(System.lineSeparator());
                         msgBuilder.append("It does not have any valid PropertyConfiguration");
                     }
-                    this.jaxRsDpsLog.debug(msgBuilder.toString());
+                    this.jaxRsDpsLog.warning(msgBuilder.toString());
 
                     configuration = EMPTY_CONFIGURATIONS; // reset
                 }
-- 
GitLab