Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (h *FileHandler) FilePath() string {

func (h *FileHandler) createLogFile(dir, name string) (*os.File, error) {
path := filepath.FromSlash(filepath.Join(dir, name))
return os.OpenFile(path, os.O_WRONLY|os.O_CREATE, 0755)
return os.OpenFile(path, os.O_WRONLY|os.O_CREATE, 0644)
}

func (h *FileHandler) OnConfigure(config Config) error {
Expand All @@ -63,7 +63,7 @@ func (h *FileHandler) OnConfigure(config Config) error {

discarded := false

if !underTest {
if !underTest && h.IsEnabled() {
file, err = h.createLogFile(config.File.Path, config.File.Name)
if err != nil {
h.SetEnabled(false)
Expand Down