better logging

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3075 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
borg-0300 18 years ago
parent 28971da91c
commit 1fc75c0f67

@ -69,6 +69,8 @@ public class kelondroBase64Order extends kelondroAbstractOrder implements kelond
} }
} }
private final serverLog log;
public static final kelondroBase64Order standardCoder = new kelondroBase64Order(true, true); public static final kelondroBase64Order standardCoder = new kelondroBase64Order(true, true);
public static final kelondroBase64Order enhancedCoder = new kelondroBase64Order(true, false); public static final kelondroBase64Order enhancedCoder = new kelondroBase64Order(true, false);
@ -83,6 +85,8 @@ public class kelondroBase64Order extends kelondroAbstractOrder implements kelond
this.asc = up; this.asc = up;
alpha = (rfc1113compliant) ? alpha_standard : alpha_enhanced; alpha = (rfc1113compliant) ? alpha_standard : alpha_enhanced;
ahpla = (rfc1113compliant) ? ahpla_standard : ahpla_enhanced; ahpla = (rfc1113compliant) ? ahpla_standard : ahpla_enhanced;
this.log = new serverLog("BASE64");
} }
public Object clone() { public Object clone() {
@ -254,7 +258,9 @@ public class kelondroBase64Order extends kelondroAbstractOrder implements kelond
return out; return out;
} catch (ArrayIndexOutOfBoundsException e) { } catch (ArrayIndexOutOfBoundsException e) {
// maybe the input was not base64 // maybe the input was not base64
throw new RuntimeException("input probably not base64"); // throw new RuntimeException("input probably not base64");
this.log.logFine("wrong string receive: [" + in + "]");
return new byte[0];
} }
} }
@ -356,5 +362,4 @@ public class kelondroBase64Order extends kelondroAbstractOrder implements kelond
} }
} }
} }

@ -10,6 +10,7 @@
# INFO regular action information (i.e. any httpd request URL) # INFO regular action information (i.e. any httpd request URL)
# CONFIG regular system status information (i.e. start-up messages) # CONFIG regular system status information (i.e. start-up messages)
# FINE in-function status debug output # FINE in-function status debug output
BASE64.level = FINE
PARSER.level = INFO PARSER.level = INFO
PROXY.level = INFO PROXY.level = INFO
YACY.level = INFO YACY.level = INFO

Loading…
Cancel
Save