Skip to content
Snippets Groups Projects
Commit 20a9b4b2 authored by brinn's avatar brinn
Browse files

fix: logging of migration of store root

SVN: 12484
parent 7c5071cb
No related branches found
No related tags found
No related merge requests found
......@@ -219,16 +219,20 @@ public final class ETLDaemon
final String absolutePath = storeRootDir.getAbsolutePath();
if (size == 0)
{
operationLog.info(String.format("No instance directory has been renamed "
if (operationLog.isDebugEnabled())
operationLog.debug(String.format("No instance directory has been renamed "
+ "in store root directory '%s'.", absolutePath));
} else
{
final File instanceDir = instanceDirs[0];
final File newName = new File(storeRootDir, "Instance_" + databaseInstance.getUuid());
instanceDir.renameTo(newName);
operationLog.info(String.format("Following instance directory '%s' has been "
+ "renamed to '%s' in store root directory '%s'.", instanceDir.getName(),
newName.getName(), absolutePath));
if (operationLog.isInfoEnabled())
{
operationLog.info(String.format("Following instance directory '%s' has been "
+ "renamed to '%s' in store root directory '%s'.", instanceDir.getName(),
newName.getName(), absolutePath));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment