mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
improve logging for ScmConfiguration handling
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user