feat(cmd/joj3): debug log with 640 permission

This commit is contained in:
张泊明518370910136 2024-11-07 04:36:27 -05:00
parent 58b69523aa
commit 6f013058a9
GPG Key ID: D47306D7062CDA9D

View File

@ -64,7 +64,7 @@ func setupSlog(logPath string) error {
if logPath != "" {
// File handler for debug logs
debugFile, err := os.OpenFile(logPath,
os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o600)
os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o640)
if err != nil {
return err
}