Skip to content
Snippets Groups Projects
Commit 980b747c authored by kaloyane's avatar kaloyane
Browse files

minor: add logging to indicate if a move command has failed

SVN: 23450
parent 46063a74
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,12 @@ public class MoveFileCommand extends AbstractTransactionalCommand ...@@ -93,6 +93,12 @@ public class MoveFileCommand extends AbstractTransactionalCommand
to.getAbsolutePath())); to.getAbsolutePath()));
IFileOperations fileOperations = FileOperations.getMonitoredInstanceForCurrentThread(); IFileOperations fileOperations = FileOperations.getMonitoredInstanceForCurrentThread();
fileOperations.move(from, to); fileOperations.move(from, to);
if (from.exists())
{
getOperationLog().error(
String.format("Failed to move %s '%s' to '%s'", entity, from.getAbsolutePath(),
to.getAbsolutePath()));
}
} }
@Override @Override
......
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