()
| 89 | } |
| 90 | |
| 91 | func stdoutPath() (string, error) { |
| 92 | if isRootUser() { |
| 93 | return fmt.Sprintf("/Library/Logs/%s.out.log", launchdIdentifier), nil |
| 94 | } |
| 95 | userHomeDir, err := userHomeDir() |
| 96 | if err != nil { |
| 97 | return "", err |
| 98 | } |
| 99 | return fmt.Sprintf("%s/Library/Logs/%s.out.log", userHomeDir, launchdIdentifier), nil |
| 100 | } |
| 101 | |
| 102 | func stderrPath() (string, error) { |
| 103 | if isRootUser() { |
no test coverage detected