mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-03 06:28:06 +01:00
change the permission of job log file
Log file permission from 644 to 600 Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
parent
360334991e
commit
4333c3ad5c
@ -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