improved command line argument handling, migrated json to config at higher debug levels

This commit is contained in:
2021-01-11 06:28:14 -09:00
parent 233aec7010
commit 951bee15fd
2 changed files with 57 additions and 47 deletions

View File

@ -195,11 +195,11 @@ func (p *Parser) setState(state int) {
p.lastcheck = nil
}
if p.DebugLevel > 0 {
if p.DebugLevel > 1 {
fmt.Printf("Parser state: %s", p.stateName())
}
p.states = append(p.states, state)
if p.DebugLevel > 0 {
if p.DebugLevel > 1 {
fmt.Printf(" -> %s\n", p.stateName())
}
}