humanlogio / humanlog

Logs for humans to read.
Apache License 2.0
748 stars 53 forks source link

scanning caught an error: bufio.Scanner: token too long #66

Open zyfzzz opened 1 year ago

zyfzzz commented 1 year ago

Hi,

This is eseentially the same issue as #53. My JSON payload is larger than 1MB thus crashing the program. I want to suggest using scanner.Err() == bufio.ErrTooLong to handle such cases.