Skip to content
Snippets Groups Projects
Commit c4c21bba authored by cramakri's avatar cramakri
Browse files

BIS-218 SP-309 : Do not log the entire contents of the failure log. That...

BIS-218 SP-309 : Do not log the entire contents of the failure log. That information is already in the log. Just give a reference to the file that describes the failure

SVN: 27345
parent fee0e36f
No related branches found
No related tags found
No related merge requests found
...@@ -76,9 +76,20 @@ public class DssRegistrationLogger ...@@ -76,9 +76,20 @@ public class DssRegistrationLogger
*/ */
public void registerFailure() public void registerFailure()
{ {
String logContent = FileUtilities.loadExactToString(file); // No need to do this again.
notificationLog.error("Data set registration failed. Registration log (" + file.getName() + "):\n" + logContent); if (isInFailureState())
{
return;
}
moveToDir(helper.getFailedDir()); moveToDir(helper.getFailedDir());
notificationLog.error("Data set registration failed. See log for details : "
+ file.getAbsolutePath());
}
private boolean isInFailureState()
{
return helper.getFailedDir().equals(file.getParentFile());
} }
/** /**
......
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