()
| 269 | } |
| 270 | |
| 271 | func (c *Cmd) logger() *slog.Logger { |
| 272 | if c.Logger == nil { |
| 273 | return slog.Default() |
| 274 | } |
| 275 | return c.Logger |
| 276 | } |
| 277 | |
| 278 | // logRunFunc logs the start and exit of c.execCmd. It adjusts the source |
| 279 | // attribute of the log record to point to the caller of c.CombinedOutput, |
no outgoing calls
no test coverage detected