Skip to content

Commit

Permalink
Continue, not break, on encoding error in task
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-rushakoff committed Jan 10, 2017
1 parent 0fc59af commit 13e12ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ func (s *LogNode) runLog([]byte) error {
for p, ok := s.ins[0].NextPoint(); ok; p, ok = s.ins[0].NextPoint() {
buf.Reset()
if err := env.Encode(p); err != nil {
return err
s.logger.Println("E!", err)
continue
}
s.logger.Println(key, buf.String())
for _, child := range s.outs {
Expand All @@ -55,7 +56,8 @@ func (s *LogNode) runLog([]byte) error {
for b, ok := s.ins[0].NextBatch(); ok; b, ok = s.ins[0].NextBatch() {
buf.Reset()
if err := env.Encode(b); err != nil {
return err
s.logger.Println("E!", err)
continue
}
s.logger.Println(key, buf.String())
for _, child := range s.outs {
Expand Down

0 comments on commit 13e12ea

Please sign in to comment.