We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2f8e1 commit 30a1934Copy full SHA for 30a1934
main.go
@@ -401,10 +401,10 @@ func main() {
401
}
402
403
func setupLogfile() (*os.File, error) {
404
- if err := os.MkdirAll("logs", 0755); err != nil {
+ if err := os.MkdirAll("/var/log", 0755); err != nil {
405
return nil, fmt.Errorf("failed to make the log directory: %v", err)
406
407
- logfile, err := os.OpenFile("logs/mactop.log", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0660)
+ logfile, err := os.OpenFile("/var/log/mactop.log", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0660)
408
if err != nil {
409
return nil, fmt.Errorf("failed to open log file: %v", err)
410
0 commit comments