diff options
Diffstat (limited to 'debugon.go')
-rw-r--r-- | debugon.go | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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. |