Skip to content

Commit

Permalink
Revert "In UDP mode, messages are truncated" (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
hartfordfive committed Aug 29, 2017
1 parent 123c3af commit e4240d2
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit e4240d2

Please sign in to comment.