Commit 296392f
ignore EINVAL when flushing logs (#238)
* ignore EINVAL when flushing logs
Running the `scheduler` in EKS, every 5 mins an error is logging:
```
failed to flush logs: sync /dev/stderr: invalid argument
```
uber-go/zap#328 details the pain here which comes down to stderr not being syncable in all environments.
* Update cmd/scheduler/app/server.go
Co-authored-by: Omri Cohen <[email protected]>
---------
Co-authored-by: Omri Cohen <[email protected]>1 parent 8087d97 commit 296392f
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments