2020-04-27 14:52:31 +02:00
|
|
|
|
2019-10-24 11:36:59 +02:00
|
|
|
package eu.dnetlib.dhp.collection.worker.utils;
|
2019-04-03 16:05:16 +02:00
|
|
|
|
|
|
|
import java.util.LinkedList;
|
|
|
|
|
|
|
|
public class CollectorPluginErrorLogList extends LinkedList<String> {
|
|
|
|
|
2020-04-27 14:52:31 +02:00
|
|
|
private static final long serialVersionUID = -6925786561303289704L;
|
2019-04-03 16:05:16 +02:00
|
|
|
|
2020-04-27 14:52:31 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2020-04-29 19:09:07 +02:00
|
|
|
String log = "";
|
2020-04-27 14:52:31 +02:00
|
|
|
int index = 0;
|
|
|
|
for (final String errorMessage : this) {
|
|
|
|
log += String.format("Retry #%s: %s / ", index++, errorMessage);
|
|
|
|
}
|
|
|
|
return log;
|
|
|
|
}
|
2019-04-03 16:05:16 +02:00
|
|
|
}
|