rotatelogs "github.com/lestrrat-go/file-rotatelogs"
"github.com/sirupsen/logrus"
- "github.com/bytom/config"
+ "github.com/bytom/bytom/config"
)
const (
return err
}
- _, err = writer.Write(msg)
- return err
+ if _, err = writer.Write(msg); err != nil {
+ return err
+ }
+
+ return writer.Close()
}
func clearLockFiles(logPath string) error {