mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-03 06:28:06 +01:00
Merge pull request #9243 from ninjadq/change_file_permission_of_joblog
change the permission of job log file
This commit is contained in:
commit
ac17afac1f
@ -16,7 +16,7 @@ type FileLogger struct {
|
||||
// NewFileLogger crates a new file logger
|
||||
// nil might be returned
|
||||
func NewFileLogger(level string, logPath string, depth int) (*FileLogger, error) {
|
||||
f, err := os.OpenFile(logPath, os.O_CREATE|os.O_WRONLY, 0644)
|
||||
f, err := os.OpenFile(logPath, os.O_CREATE|os.O_WRONLY, 0600)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user