Skip to content

Commit

Permalink
tail with -F to handle log rotating
Browse files Browse the repository at this point in the history
  • Loading branch information
aylei committed Feb 28, 2019
1 parent 970c06b commit cd0fec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/member/tidb_member_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (tmm *tidbMemberManager) getNewTiDBSetForTidbCluster(tc *v1alpha1.TidbClust
Command: []string{
"sh",
"-c",
fmt.Sprintf("touch %s; tail -n0 -f %s;", slowQueryLogFile, slowQueryLogFile),
fmt.Sprintf("touch %s; tail -n0 -F %s;", slowQueryLogFile, slowQueryLogFile),
},
})
}
Expand Down

0 comments on commit cd0fec8

Please sign in to comment.