Skip to content

Commit b49ae1b

Browse files
committed
cleanup log
1 parent 3362182 commit b49ae1b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pipelines/import_sql.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
log "github.com/cihub/seelog"
2222
_ "github.com/go-sql-driver/mysql"
2323
"github.com/infinitbyte/framework/core/pipeline"
24-
"github.com/infinitbyte/framework/core/util"
2524
)
2625

2726
type ImportSQLJoint struct {
@@ -71,7 +70,9 @@ func (joint ImportSQLJoint) Process(c *pipeline.Context) error {
7170
panic(err)
7271
}
7372

74-
log.Debug(result)
73+
rc,_:=result.RowsAffected()
74+
l,_:=result.RowsAffected()
75+
log.Debugf("%v rows affected, lastInsertID: %v",rc,l)
7576

7677
err = tx.Commit()
7778
if err != nil {

pipelines/read_csv.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ func (joint ReadCsvJoint) Process(c *pipeline.Context) error {
8888

8989
for _, x := range templates {
9090
line := x
91-
//line:=templates
9291
log.Debug("template:", line)
9392
for k, v := range colMap {
9493
log.Debug(fmt.Sprintf("<{%v: }>", k), ",", formatString(v))

0 commit comments

Comments
 (0)