summaryrefslogtreecommitdiff
path: root/debugon.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-10 22:40:20 +1000
committerAdam Scarr <adam@vektah.net>2017-08-10 22:41:07 +1000
commitb2713a0653eca81d1428112dd8b29b3fd4c53089 (patch)
treedef2510f1ddf48db58c55d97eb23596efad1bf04 /debugon.go
parent382f7b63be99ad9578663041f746e1b8f6e6071b (diff)
Remove magic -parselogs flag
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.