diff --git a/logspout.go b/logspout.go index cd607d91..4094e5ab 100644 --- a/logspout.go +++ b/logspout.go @@ -68,7 +68,9 @@ func main() { for _, job := range router.Jobs.All() { job := job - go log.Fatalf("%s ended: %s", job.Name(), job.Run()) + go func() { + log.Fatalf("%s ended: %s", job.Name(), job.Run()) + }() } select {}