Skip to content
Snippets Groups Projects
Commit f9497a0d authored by felmer's avatar felmer
Browse files

SP-527, BIS-343: log message improved

SVN: 28682
parent a5b44846
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ public class DataSetAndPathInfoDBConsistencyCheckTask implements IMaintenanceTas ...@@ -91,7 +91,7 @@ public class DataSetAndPathInfoDBConsistencyCheckTask implements IMaintenanceTas
Date youngerThanDate = new Date(getTimeProvider().getTimeInMilliseconds() - timeInterval); Date youngerThanDate = new Date(getTimeProvider().getTimeInMilliseconds() - timeInterval);
List<SimpleDataSetInformationDTO> dataSets = List<SimpleDataSetInformationDTO> dataSets =
getService().listOldestPhysicalDataSets(youngerThanDate, Integer.MAX_VALUE); getService().listOldestPhysicalDataSets(youngerThanDate, Integer.MAX_VALUE);
operationLog.info("Check " + dataSets.size() + " registered since " operationLog.info("Check " + dataSets.size() + " data sets registered since "
+ DATE_FORMAT.format(youngerThanDate)); + DATE_FORMAT.format(youngerThanDate));
DataSetAndPathInfoDBConsistencyChecker checker = DataSetAndPathInfoDBConsistencyChecker checker =
new DataSetAndPathInfoDBConsistencyChecker(fileProvider, pathInfoProvider); new DataSetAndPathInfoDBConsistencyChecker(fileProvider, pathInfoProvider);
......
...@@ -98,7 +98,7 @@ public class DataSetAndPathInfoDBConsistencyCheckTaskTest extends AssertJUnit ...@@ -98,7 +98,7 @@ public class DataSetAndPathInfoDBConsistencyCheckTaskTest extends AssertJUnit
task.execute(); task.execute();
assertEquals("INFO OPERATION.DataSetAndPathInfoDBConsistencyCheckTask - " assertEquals("INFO OPERATION.DataSetAndPathInfoDBConsistencyCheckTask - "
+ "Check 1 registered since 1970-01-01 01:00:00", logRecorder.getLogContent()); + "Check 1 data sets registered since 1970-01-01 01:00:00", logRecorder.getLogContent());
assertEquals(true, fileContent.isClosed()); assertEquals(true, fileContent.isClosed());
assertEquals(true, pathInfoContent.isClosed()); assertEquals(true, pathInfoContent.isClosed());
context.assertIsSatisfied(); context.assertIsSatisfied();
...@@ -116,7 +116,7 @@ public class DataSetAndPathInfoDBConsistencyCheckTaskTest extends AssertJUnit ...@@ -116,7 +116,7 @@ public class DataSetAndPathInfoDBConsistencyCheckTaskTest extends AssertJUnit
task.execute(); task.execute();
assertEquals("INFO OPERATION.DataSetAndPathInfoDBConsistencyCheckTask - " assertEquals("INFO OPERATION.DataSetAndPathInfoDBConsistencyCheckTask - "
+ "Check 1 registered since 1970-01-01 01:00:00\n" + "Check 1 data sets registered since 1970-01-01 01:00:00\n"
+ "ERROR OPERATION.DataSetAndPathInfoDBConsistencyChecker - " + "ERROR OPERATION.DataSetAndPathInfoDBConsistencyChecker - "
+ "Couldn't check consistency of the file system and " + "Couldn't check consistency of the file system and "
+ "the path info database for a data set: ds1\n" + "the path info database for a data set: ds1\n"
...@@ -162,7 +162,7 @@ public class DataSetAndPathInfoDBConsistencyCheckTaskTest extends AssertJUnit ...@@ -162,7 +162,7 @@ public class DataSetAndPathInfoDBConsistencyCheckTaskTest extends AssertJUnit
assertEquals( assertEquals(
"INFO OPERATION.DataSetAndPathInfoDBConsistencyCheckTask - " "INFO OPERATION.DataSetAndPathInfoDBConsistencyCheckTask - "
+ "Check 4 registered since 1970-01-01 01:00:00\n" + "Check 4 data sets registered since 1970-01-01 01:00:00\n"
+ "ERROR NOTIFY.DataSetAndPathInfoDBConsistencyCheckTask - " + "ERROR NOTIFY.DataSetAndPathInfoDBConsistencyCheckTask - "
+ "File system and path info DB consistency check report " + "File system and path info DB consistency check report "
+ "for all data sets since 1970-01-01 01:00:00\n\n" + "for all data sets since 1970-01-01 01:00:00\n\n"
......
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