From 972a717a32325151fda0e7307dcbf92bd211f37c Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Wed, 6 Mar 2019 09:09:21 +0100 Subject: [PATCH] Fix quiet transaction --- mysql.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mysql.go b/mysql.go index 805b253a..71390097 100644 --- a/mysql.go +++ b/mysql.go @@ -473,11 +473,8 @@ func (dbw DBWrapper) SqlTransaction(concurrencySafety bool, retryOnConnectionFai errTx := dbw.sqlTryTransaction(f, concurrencySafety, false) if !quiet { benchmarc.Stop() - } + DbIoSeconds.WithLabelValues("mysql", "transaction").Observe(benchmarc.Seconds()) - DbIoSeconds.WithLabelValues("mysql", "transaction").Observe(benchmarc.Seconds()) - - if !quiet { log.WithFields(log.Fields{ "context": "sql", "benchmark": benchmarc,