Skip to content
Snippets Groups Projects
Commit 171738e7 authored by Matthias Rampke's avatar Matthias Rampke Committed by ale
Browse files

check for unusual end of input

parent a7b3758f
No related branches found
No related tags found
No related merge requests found
...@@ -136,5 +136,8 @@ func (re *rsyslogExporter) run() { ...@@ -136,5 +136,8 @@ func (re *rsyslogExporter) run() {
for re.scanner.Scan() { for re.scanner.Scan() {
re.handleStatLine(re.scanner.Bytes()) re.handleStatLine(re.scanner.Bytes())
} }
if err := re.scanner.Err(); err != nil {
log.Printf("error reading input: %v", err)
}
os.Exit(0) os.Exit(0)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment