mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Fix quiet transaction
This commit is contained in:
parent
dd7aca8c30
commit
972a717a32
1 changed files with 1 additions and 4 deletions
5
mysql.go
5
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue