From 858251d52c2ab04b3026573fa3e14b19579cac19 Mon Sep 17 00:00:00 2001 From: Rene Treffer Date: Wed, 30 Jul 2014 22:37:09 +0200 Subject: Remove System.out code --- src/main/java/de/measite/minidns/Record.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/de/measite/minidns/Record.java b/src/main/java/de/measite/minidns/Record.java index 26af4711..ab081426 100644 --- a/src/main/java/de/measite/minidns/Record.java +++ b/src/main/java/de/measite/minidns/Record.java @@ -3,6 +3,8 @@ package de.measite.minidns; import java.io.DataInputStream; import java.io.IOException; import java.util.HashMap; +import java.util.logging.Level; +import java.util.logging.Logger; import de.measite.minidns.record.A; import de.measite.minidns.record.AAAA; @@ -19,6 +21,8 @@ import de.measite.minidns.util.NameUtil; */ public class Record { + private static final Logger LOGGER = Logger.getLogger(Client.class.getName()); + /** * The record type. * @see IANA DNS Parameters @@ -241,7 +245,7 @@ public class Record { this.clazz = CLASS.getClass(clazzValue & 0x7fff); this.unicastQuery = (clazzValue & 0x8000) > 0; if (this.clazz == null) { - System.out.println("Unknown class " + clazzValue); + LOGGER.log(Level.FINE, "Unknown class " + clazzValue); } this.ttl = (((long)dis.readUnsignedShort()) << 32) + dis.readUnsignedShort(); @@ -269,7 +273,7 @@ public class Record { this.payloadData = new TXT(); break; default: - System.out.println("Unparsed type " + type); + LOGGER.log(Level.FINE, "Unparsed type " + type); this.payloadData = null; for (int i = 0; i < payloadLength; i++) { dis.readByte(); -- cgit v1.2.3