fix bug it doesn't trace the old file if specified --check-first
@@ -232,7 +232,7 @@ func (opts *logOpts) searchLog(logFile string) (int64, int64, string, error) {
}
var r io.ReadSeeker
- if opts.NoState || opts.CheckFirst {
+ if opts.NoState {
f, err := os.Open(logFile)
if err != nil {
return 0, 0, "", err
