make hot functions actually have logs now

This commit is contained in:
Reed Allman
2017-06-30 16:10:11 -07:00
parent 4172bac7fe
commit c20b4769bf
2 changed files with 50 additions and 9 deletions

View File

@@ -172,9 +172,8 @@ func (r *Runner) run(ctx context.Context, cfg *task.Config) (drivers.RunResult,
cfg.Memory = 128
}
cfg.Stderr = r.flog.Writer(ctx, cfg.AppName, cfg.Path, cfg.Image, cfg.ID)
defer cfg.Stderr.Close() // TODO we should prob log this err but hey
if cfg.Stdout == nil {
// TODO why? async?
cfg.Stdout = cfg.Stderr
}