modify log
This commit is contained in:
+2
-2
@@ -139,9 +139,9 @@ func processed(db *sql.DB, t telegram) {
|
|||||||
result, err := stmt.Exec(t.id)
|
result, err := stmt.Exec(t.id)
|
||||||
checkDbErr(err, "error in update telegram status")
|
checkDbErr(err, "error in update telegram status")
|
||||||
rows, _ := result.RowsAffected()
|
rows, _ := result.RowsAffected()
|
||||||
Log.Info("telegram update : %t", zap.Int64("id", t.id), zap.Bool("result", rows > 0))
|
Log.Info("telegram update ", zap.Int64("id", t.id), zap.Bool("result", rows > 0))
|
||||||
isWriting = false
|
isWriting = false
|
||||||
Log.Info("release lock")
|
Log.Debug("release lock")
|
||||||
tx.Commit()
|
tx.Commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user