Skip to content

Commit 8115dcb

Browse files
committed
fix no debug log issue
1 parent 0880192 commit 8115dcb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func NewCluster(
154154
cache: cache,
155155

156156
disabled: make(chan struct{}, 0),
157-
fileset: make(map[string]int64, 0),
157+
fileset: make(map[string]int64, 0),
158158

159159
downloading: make(map[string]chan error),
160160

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ func main() {
115115
}()
116116
defer log.RecordPanic()
117117
log.StartFlushLogFile()
118+
if config.Advanced.DebugLog {
119+
log.SetLevel(log.LevelDebug)
120+
} else {
121+
log.SetLevel(log.LevelInfo)
122+
}
118123

119124
// override the osExit inside main function
120125
osExit := func(n int) {

0 commit comments

Comments
 (0)