Skip to content
Snippets Groups Projects
Commit 817fd0fc authored by Zhibin Mai's avatar Zhibin Mai Committed by Chad Leong
Browse files

Change the log level for augmenter related errors

(cherry picked from commit 1de118fa)
parent 830bf8c1
No related branches found
No related tags found
1 merge request!585Cherry-pick 'Prevent any exception from Augmenter functions to corrupt the normal indexing' into release/0.22
......@@ -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);
}
}
......
......@@ -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);
}
}
......
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment