Skip to content

Commit

Permalink
append line delimiter to ensure no lines get truncated; also longer l…
Browse files Browse the repository at this point in the history
…ines
  • Loading branch information
jdrews committed Jul 23, 2022
1 parent 29f263f commit ea291ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/loggenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func main() {
os.Exit(1)
}
datawriter := bufio.NewWriter(file)
datawriter.WriteString(fmt.Sprint(i, ": (", time.Now().Format(time.RFC3339), ") [", randomSeverity(), "] ", paragraph(), "\n"))
datawriter.WriteString(fmt.Sprint(i, ": (", time.Now().Format(time.RFC3339), ") [", randomSeverity(), "] ", paragraph(), ">>STOP\n"))
datawriter.Flush()
file.Close()
time.Sleep(sleeptime)
Expand Down Expand Up @@ -129,5 +129,5 @@ func sentences(count int) string {
}

func paragraph() string {
return sentences(rand.Intn(8) + 2)
return sentences(rand.Intn(10) + 2)
}

0 comments on commit ea291ef

Please sign in to comment.