diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-10 22:40:20 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-10 22:41:07 +1000 |
commit | b2713a0653eca81d1428112dd8b29b3fd4c53089 (patch) | |
tree | def2510f1ddf48db58c55d97eb23596efad1bf04 /debugon.go | |
parent | 382f7b63be99ad9578663041f746e1b8f6e6071b (diff) |
Remove magic -parselogs flag
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. |