Skip to content

Commit 30dbf1e

Browse files
Eric Dalloelo7-developer
authored andcommitted
Adiciona log de erro
1 parent 3da4733 commit 30dbf1e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=2.2.5
1+
version=2.2.6

src/main/java/com/spring/loader/configuration/S3PropertiesSourceConfigurer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public int getOrder() {
5858
}
5959

6060
@Override
61-
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
61+
public void postProcessBeanFactory(@SuppressWarnings("unused") ConfigurableListableBeanFactory beanFactory) throws BeansException {
6262
if (this.environment instanceof ConfigurableEnvironment) {
6363

6464
PropertiesFactoryBean propertiesFactory = new PropertiesFactoryBean();
@@ -76,6 +76,9 @@ public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
7676
properties.load(s3ResourceLoader.getProperty(locations[i]));
7777
} catch (IOException e) {
7878
LOGGER.error("Could not load properties from location " + locations[i], e);
79+
} catch (Exception e) {
80+
LOGGER.error("Error on loading properties from location: " + locations[i], e);
81+
return;
7982
}
8083
propertiesToAdd[i] = properties;
8184

0 commit comments

Comments
 (0)