Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Do not set default path here, rollback the change.
Browse files Browse the repository at this point in the history
Signed-off-by: YanzheL <[email protected]>
  • Loading branch information
YanzheL committed Jan 14, 2020
1 parent 54b4918 commit ebfc638
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/dflog/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"bytes"
"fmt"
"os"
"path/filepath"
"strings"

"github.com/pkg/errors"
Expand Down Expand Up @@ -77,7 +76,7 @@ func getLumberjack(l *logrus.Logger) *lumberjack.Logger {
func WithLogFile(f string, maxSize, maxBackups int) Option {
return func(l *logrus.Logger) error {
if f == "" {
f = filepath.Join("logs", "dfdaemon.log")
return nil
}
if maxSize <= 0 {
maxSize = 40
Expand Down

0 comments on commit ebfc638

Please sign in to comment.