Skip to content

Commit 0863b5d

Browse files
authored
Fix log file name. (#32)
1 parent 2731aa3 commit 0863b5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/logger/logger.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
const (
1515
// DefaultLogLevel is the default log level
1616
DefaultLogLevel = zerolog.InfoLevel
17+
18+
LogFileName = "migration-verifier.log"
1719
)
1820

1921
// DefaultLogWriter is the default log io.Writer implementor
@@ -90,7 +92,7 @@ func NewRotatingWriter(dirPath string) (io.Writer, error) {
9092
}
9193

9294
return &lumberjack.Logger{
93-
Filename: path.Join(dirPath, "mongosync.log"),
95+
Filename: path.Join(dirPath, LogFileName),
9496
}, nil
9597
}
9698

0 commit comments

Comments
 (0)