From fcc9821edd5021fb8985e939c42de8fd1fe9217e Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 15 Dec 2011 11:33:28 +0100 Subject: [PATCH] Remove some debugging stuff --- zscan.go | 3 +-- zscan_rr.go | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/zscan.go b/zscan.go index a55a0925..a1c81de7 100644 --- a/zscan.go +++ b/zscan.go @@ -34,7 +34,7 @@ const ( _EXPECT_RDATA // The first element of the rdata ) -var DEBUG = true +var DEBUG = false type ParseError struct { err string @@ -138,7 +138,6 @@ func ParseZone(r io.Reader, cr chan RR) { fmt.Printf("%s\n", &ParseError{"Expecting RR type, TTL or class, not this...", l}) } case _EXPECT_ANY_NOCLASS_BL: - println("IM HERE") if l.value != _BLANK { fmt.Printf("%s\n", &ParseError{"No blank before NOCLASS", l}) } diff --git a/zscan_rr.go b/zscan_rr.go index c35ba135..f6da2f94 100644 --- a/zscan_rr.go +++ b/zscan_rr.go @@ -292,7 +292,6 @@ func setNSEC(h RR_Header, c chan Lex) (RR, error) { rr.Hdr = h l := <-c - println("NSEC NEXTDOMAIN: ", l.token) if !IsDomainName(l.token) { return nil, &ParseError{"bad NSEC nextdomain", l} } else { @@ -407,7 +406,6 @@ func setTXT(h RR_Header, c chan Lex) (RR, error) { l := <-c var s string for l.value != _NEWLINE && l.value != _EOF { - println("tok", l.token, l.value) switch l.value { case _STRING: s += l.token