mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +00:00
quiet excessive logging
This commit is contained in:
1 parent
92f5ca2a45
commit
d336ea760f
5 files changed
+29
-22
No files matched your search
@@ -227,7 +227,7 @@ public abstract class WriterPoolMember implements ArchiveFileConstants {
|
||||
this.f = file;
|
||||
this.fos = new FileOutputStream(this.f);
|
||||
this.out = new FastBufferedOutputStream(this.fos);
|
||||
logger.info("Opened " + this.f.getAbsolutePath());
|
||||
logger.fine("Opened " + this.f.getAbsolutePath());
|
||||
return this.f.getName();
|
||||
}
|
||||
|
||||
@@ -492,7 +492,7 @@ public abstract class WriterPoolMember implements ArchiveFileConstants {
|
||||
this.f = f;
|
||||
}
|
||||
|
||||
logger.info("Closed " + this.f.getAbsolutePath() +
|
||||
logger.fine("Closed " + this.f.getAbsolutePath() +
|
||||
", size " + this.f.length());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
|
||||
@@ -53,6 +54,9 @@ import org.springframework.validation.Validator;
|
||||
* @contributor gojomo
|
||||
*/
|
||||
public class PathSharingContext extends FileSystemXmlApplicationContext {
|
||||
private static Logger LOGGER =
|
||||
Logger.getLogger(PathSharingContext.class.getName());
|
||||
|
||||
|
||||
public PathSharingContext(String configLocation) throws BeansException {
|
||||
super(configLocation);
|
||||
@@ -204,13 +208,11 @@ public class PathSharingContext extends FileSystemXmlApplicationContext {
|
||||
allErrors.put(name,errors);
|
||||
}
|
||||
}
|
||||
System.err.println("===errors===");
|
||||
for(String name : allErrors.keySet()) {
|
||||
for(Object obj : allErrors.get(name).getAllErrors()) {
|
||||
System.err.println(name+": "+obj);
|
||||
LOGGER.fine("validation error for '"+name+"': "+obj);
|
||||
}
|
||||
}
|
||||
System.err.println("============");
|
||||
}
|
||||
|
||||
public HashMap<String,Errors> getAllErrors() {
|
||||
|
||||
Reference in new issue
Block a user