log which method was used to wrap db->execute

This commit is contained in:
Shish 2019-07-07 15:12:51 +01:00
parent 3c6b09110a
commit 1e1ede7db6

View file

@ -192,7 +192,7 @@ class Database
{ {
global $_tracer; global $_tracer;
$dur = microtime(true) - $start; $dur = microtime(true) - $start;
$_tracer->complete($start * 1000000, $dur * 1000000, "DB Query", ["query"=>$query, "args"=>$args]); $_tracer->complete($start * 1000000, $dur * 1000000, "DB Query", ["query"=>$query, "args"=>$args, "method"=>$method]);
$this->query_count++; $this->query_count++;
$this->dbtime += $dur; $this->dbtime += $dur;
} }