Skip to content

Commit

Permalink
ignore first 3 lines of the log file
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Feb 24, 2021
1 parent a52687a commit 2d5d747
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ func (p *Parser) scan() {
var bloc []string
inHeader, inQuery := false, false

// Skip the first three lines of the log file
for i := 0; i < 3; i++ {
p.scanner.Scan()
}

for p.scanner.Scan() {
line := p.scanner.Text()
// Drop useless lines
Expand Down

0 comments on commit 2d5d747

Please sign in to comment.