Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In UDP mode, messages are truncated #8

Merged
merged 1 commit into from Aug 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion protolog/loglistener.go
Expand Up @@ -99,9 +99,9 @@ func (ll *LogListener) startUDP(proto string, address string) {
defer l.Close()

logp.Info("Now listening for logs via %s on %s", ll.config.Protocol, address)
buffer := make([]byte, ll.config.MaxMsgSize)

for {
buffer := make([]byte, ll.config.MaxMsgSize)
length, _, err := l.ReadFrom(buffer)
if err != nil {
logp.Err("Error reading from buffer: %v", err.Error())
Expand Down