feat!: no logging to local file by default (#18)

This commit is contained in:
GUO YANKE
2024-08-22 10:03:12 +08:00
parent 280db66e4f
commit 3ebbb16df8

View File

@@ -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
)