openfaas / of-watchdog

Reverse proxy for STDIO and HTTP microservices
MIT License
259 stars 115 forks source link

bufio.Scanner: token too long #105

Closed edgar1992 closed 2 years ago

edgar1992 commented 3 years ago

when the forked process has too long log, it will cause 'bufio.Scanner: token too long' https://stackoverflow.com/questions/21124327/how-to-read-a-text-file-line-by-line-in-go-when-some-lines-are-long-enough-to-ca

alexellis commented 3 years ago

What use-case do you have, that is writing to stdio with a huge output? The of-watchdog is designed primarily for use with the HTTP mode which should only write occasional, and very brief debug messages.

Can you help us understand what you're trying to achieve here?

alexellis commented 3 years ago

Closing as duplicate of https://github.com/openfaas/of-watchdog/issues/100 - however, I'd still like to hear from you on the above @edgar1992

hdaginawala-infoblox commented 2 years ago

bufio.Scanner: token too long

what would cause the above message? For perspective, This is from a logging host which is created, which ideally receives logs from one source and sends it to another

alexellis commented 2 years ago

Hi @hdaginawala-infoblox

It would seem that you've commented on an old issue

Please raise your own issue in this repository and fill out the whole issue template.

You should also see the "log_buffer_size" note in the README of this repository.

Alex

alexellis commented 2 years ago

/lock: out of date