Change-Id: I677610c711443b787f7cea1be2dd9f01486b1324
use Wikimedia;
use InvalidArgumentException;
use Exception;
+use RuntimeException;
use stdClass;
/**
// given that the isolation level will typically be REPEATABLE-READ
$this->queryLogger->warning(
"Using cached lag value for {db_server} due to active transaction",
- $this->getLogContext( [ 'method' => __METHOD__, 'age' => $staleness ] )
+ $this->getLogContext( [
+ 'method' => __METHOD__,
+ 'age' => $staleness,
+ 'trace' => ( new RuntimeException() )->getTraceAsString()
+ ] )
);
}