mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
clean up the logging code
add limit writecloser, add closer method so we can flush logs properly, buffer logs and stuff it builds it works amirite
This commit is contained in:
@@ -173,6 +173,7 @@ func (r *Runner) run(ctx context.Context, cfg *task.Config) (drivers.RunResult,
|
||||
}
|
||||
|
||||
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 {
|
||||
cfg.Stdout = cfg.Stderr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user