improve logging for ScmConfiguration handling

This commit is contained in:
Sebastian Sdorra
2011-04-20 16:50:54 +02:00
parent 31ddd647fd
commit 961bb1aaac
2 changed files with 24 additions and 1 deletions

View File

@@ -353,7 +353,7 @@ public class ScmServletModule extends ServletModule
}
/**
* Method description
* Load ScmConfiguration with JAXB
*
*
* @param context
@@ -367,6 +367,11 @@ public class ScmServletModule extends ServletModule
if (file.exists())
{
if (logger.isInfoEnabled())
{
logger.info("load ScmConfiguration: {}", file);
}
try
{
config = JAXB.unmarshal(file, ScmConfiguration.class);
@@ -381,6 +386,10 @@ public class ScmServletModule extends ServletModule
logger.error(ex.getMessage(), ex);
}
}
else if (logger.isWarnEnabled())
{
logger.warn("could not find ScmConfiguration at {}", file);
}
if (config == null)
{