'error' => $error,
'sql1line' => mb_substr( str_replace( "\n", "\\n", $sql ), 0, 5 * 1024 ),
'fname' => $fname,
- 'trace' => ( new RuntimeException() )->getTraceAsString()
+ 'exception' => new RuntimeException()
] )
);
"Error connecting to {db_server} as user {db_user}: {error}",
$this->getLogContext( [
'error' => $error,
- 'trace' => ( new RuntimeException() )->getTraceAsString()
+ 'exception' => new RuntimeException()
] )
);
if ( preg_match( '/(^|\s)(DISTINCT|JOIN|ON|AS)(\s|$)/i', $name ) !== 0 ) {
$this->queryLogger->warning(
__METHOD__ . ": use of subqueries is not supported this way",
- [ 'trace' => ( new RuntimeException() )->getTraceAsString() ]
+ [ 'exception' => new RuntimeException() ]
);
return $name;
$this->queryLogger->warning(
"$fname: Expected mass snapshot flush of all peer transactions " .
"in the explicit transactions round '{$this->getTransactionRoundId()}'",
- [ 'trace' => ( new RuntimeException() )->getTraceAsString() ]
+ [ 'exception' => new RuntimeException() ]
);
}
$fname . ': lost connection to {dbserver}; reconnected',
[
'dbserver' => $this->getServer(),
- 'trace' => ( new RuntimeException() )->getTraceAsString()
+ 'exception' => new RuntimeException()
]
);
} catch ( DBConnectionError $e ) {
public function __clone() {
$this->connLogger->warning(
"Cloning " . static::class . " is not recommended; forking connection",
- [ 'trace' => ( new RuntimeException() )->getTraceAsString() ]
+ [ 'exception' => new RuntimeException() ]
);
if ( $this->isOpen() ) {