mirror of
https://github.com/guoyk93/minit.git
synced 2025-12-24 12:37:54 +08:00
feat!: no logging to local file by default (#18)
This commit is contained in:
3
main.go
3
main.go
@@ -36,7 +36,6 @@ func mkdirUnlessNone(dir *string) {
|
||||
return
|
||||
}
|
||||
if err := os.MkdirAll(*dir, 0755); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "failed to create dir %s: %s\n", *dir, err.Error())
|
||||
*dir = dirNone
|
||||
}
|
||||
}
|
||||
@@ -71,7 +70,7 @@ func main() {
|
||||
optPprofPort = ""
|
||||
|
||||
optUnitDir = "/etc/minit.d"
|
||||
optLogDir = "/var/log/minit"
|
||||
optLogDir = dirNone
|
||||
optQuickExit bool
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user