mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
improve logging for ScmConfiguration handling
This commit is contained in:
@@ -39,6 +39,9 @@ import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import sonia.scm.SCMContext;
|
||||
import sonia.scm.config.ScmConfiguration;
|
||||
import sonia.scm.plugin.PluginManager;
|
||||
@@ -71,6 +74,12 @@ import javax.xml.bind.JAXB;
|
||||
public class ConfigurationResource
|
||||
{
|
||||
|
||||
/** the logger for ConfigurationResource */
|
||||
private static final Logger logger =
|
||||
LoggerFactory.getLogger(ConfigurationResource.class);
|
||||
|
||||
//~--- constructors ---------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
@@ -150,6 +159,11 @@ public class ConfigurationResource
|
||||
IOUtil.mkdirs(file.getParentFile());
|
||||
}
|
||||
|
||||
if (logger.isInfoEnabled())
|
||||
{
|
||||
logger.info("write ScmConfiguration to {}", file);
|
||||
}
|
||||
|
||||
JAXB.marshal(configuration, file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user