You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG.error("Found {}, which likely indicates a problem with a delete method or a container listener.", StringUtilsLabKey.pluralize(ret, "orphaned attachment"));
1121
+
1122
+
finalStringmessage;
1123
+
if (orphans.size() > MAX_ORPHANS_TO_LOG)
1124
+
{
1125
+
orphans = orphans.subList(0, MAX_ORPHANS_TO_LOG);
1126
+
message = "The first " + MAX_ORPHANS_TO_LOG;
1127
+
}
1128
+
else
1120
1129
{
1121
-
LOG.error("Found {}, which likely indicates a problem with a delete method or a container listener.", StringUtilsLabKey.pluralize(orphans.size(), "orphaned attachment"));
1122
-
1123
-
finalStringmessage;
1124
-
if (orphans.size() > MAX_ORPHANS_TO_LOG)
1125
-
{
1126
-
orphans = orphans.subList(0, MAX_ORPHANS_TO_LOG);
1127
-
message = "The first " + MAX_ORPHANS_TO_LOG;
1128
-
}
1129
-
else
1130
-
{
1131
-
message = "All";
1132
-
}
1133
-
1134
-
LOG.error("{} detected orphans are listed below:\n{}", message, orphans.stream().map(Record::toString).collect(Collectors.joining("\n")));
1130
+
message = "All";
1135
1131
}
1132
+
1133
+
LOG.error("{} detected orphans are listed below:\n{}", message, orphans.stream().map(Record::toString).collect(Collectors.joining("\n")));
0 commit comments