(sql string, args ...interface{})
| 595 | } |
| 596 | |
| 597 | func (tx *Transaction) logQuery(sql string, args ...interface{}) { |
| 598 | sqlFormat := strings.Replace(sql, "?", "%s", -1) |
| 599 | query := fmt.Sprintf(sqlFormat, args...) |
| 600 | log.Debug("[%p] Executing SQL query '%s'", tx.transaction, query) |
| 601 | } |
| 602 | |
| 603 | func (tx *Transaction) measureTime(timeStarted time.Time, schemaId, action string) { |
| 604 | metrics.UpdateTimer(timeStarted, "tx.%s.%s", schemaId, action) |
no test coverage detected