mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-26 07:35:39 +00:00
* PersistProcessor.java
copyPersistEnv() - improve logging on history entries by marshalling them as json
This commit is contained in:
@@ -46,6 +46,7 @@ import org.archive.util.OneLineSimpleLogger;
|
||||
import org.archive.util.SURT;
|
||||
import org.archive.util.bdbje.EnhancedEnvironment;
|
||||
import org.archive.util.iterator.LineReadingIterator;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import com.sleepycat.bind.serial.SerialBinding;
|
||||
import com.sleepycat.bind.serial.StoredClassCatalog;
|
||||
@@ -169,7 +170,7 @@ public abstract class PersistProcessor extends Processor {
|
||||
while (iter.hasNext()) {
|
||||
Entry<String,Map> item = iter.next();
|
||||
if (logger.isLoggable(Level.FINE)) {
|
||||
logger.fine(item.getKey() + " " + item.getValue());
|
||||
logger.fine(item.getKey() + " " + new JSONObject(item.getValue()));
|
||||
}
|
||||
|
||||
if (historyMap != null) {
|
||||
|
||||
Reference in New Issue
Block a user