Run the logging driver
(fn LoggerFunc)
| 30 | |
| 31 | // Run the logging driver |
| 32 | func Run(fn LoggerFunc) { |
| 33 | err := runInternal(fn) |
| 34 | if err != nil { |
| 35 | fmt.Fprintln(os.Stderr, err) |
| 36 | os.Exit(1) |
| 37 | } |
| 38 | os.Exit(0) |
| 39 | } |
| 40 | |
| 41 | func runInternal(fn LoggerFunc) error { |
| 42 | ctx, cancel := context.WithCancel(context.Background()) |
nothing calls this directly
no test coverage detected