killbill-aplcache

overdue: add warning when the config file cannot be found Signed-off-by:

9/2/2014 8:29:05 AM

Details

diff --git a/overdue/src/main/java/org/killbill/billing/overdue/service/DefaultOverdueService.java b/overdue/src/main/java/org/killbill/billing/overdue/service/DefaultOverdueService.java
index e2e01a4..d900774 100644
--- a/overdue/src/main/java/org/killbill/billing/overdue/service/DefaultOverdueService.java
+++ b/overdue/src/main/java/org/killbill/billing/overdue/service/DefaultOverdueService.java
@@ -96,16 +96,19 @@ public class DefaultOverdueService implements OverdueService {
                 overdueConfig = XMLLoader.getObjectFromUri(u, OverdueConfig.class);
                 // File not found?
                 if (overdueConfig == null) {
-                    log.warn("Unable to load the overdue config from " + properties.getConfigURI());
+                    log.warn("Overdue system disabled: unable to load the overdue config from " + properties.getConfigURI());
                     overdueConfig = new OverdueConfig();
                 }
 
                 isConfigLoaded = true;
             } catch (final URISyntaxException e) {
+                log.warn("Overdue system disabled: unable to load the overdue config from " + properties.getConfigURI(), e);
                 overdueConfig = new OverdueConfig();
             } catch (final IllegalArgumentException e) {
+                log.warn("Overdue system disabled: unable to load the overdue config from " + properties.getConfigURI(), e);
                 overdueConfig = new OverdueConfig();
             } catch (final Exception e) {
+                log.warn("Unable to load the overdue config from " + properties.getConfigURI(), e);
                 throw new ServiceException(e);
             }