summaryrefslogtreecommitdiff
path: root/debugon.go
diff options
context:
space:
mode:
Diffstat (limited to 'debugon.go')
-rw-r--r--debugon.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/debugon.go b/debugon.go
index 9154472..56698db 100644
--- a/debugon.go
+++ b/debugon.go
@@ -4,10 +4,8 @@ package goparsify
import (
"bytes"
- "flag"
"fmt"
"io"
- "os"
"sort"
"strconv"
"strings"
@@ -91,15 +89,6 @@ func (dp *debugParser) Parse(ps *State) Result {
return ret
}
-func init() {
- logs := flag.Bool("parselogs", false, "print detailed parsing logs")
- flag.Parse()
-
- if *logs {
- EnableLogging(os.Stdout)
- }
-}
-
// NewParser should be called around the creation of every Parser.
// It does nothing normally and should incur no runtime overhead, but when building with -tags debug
// it will instrument every parser to collect valuable timing and debug information.