mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-05 07:27:50 +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
|
// NewFileLogger crates a new file logger
|
||||||
// nil might be returned
|
// nil might be returned
|
||||||
func NewFileLogger(level string, logPath string, depth int) (*FileLogger, error) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user