Browse Source

fix:添加记录binlog的位置

Roc 11 months ago
parent
commit
969b725f1f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      services/binlog/binlog.go

+ 2 - 0
services/binlog/binlog.go

@@ -154,6 +154,8 @@ func ListenMysql() {
 		return
 	}
 
+	global.FILE_LOG.Debug("记录上一次启动时的fileName:", fileName, ";position:", position)
+
 	binlogHandler := &MyEventHandler{}
 	binlogHandler.SetBinlogFileName(fileName, position)
 	c.SetEventHandler(binlogHandler)