self::getLogMessage( $e ),
self::getLogContext( $e )
);
- $factory->rollbackMasterChanges();
+ $factory->rollbackMasterChanges( __METHOD__ );
}
}
* @param string $message
* @param string $file
* @param int $line
+ * @return bool
*
* @see logError()
*/
return false;
}
-
/**
* Dual purpose callback used as both a set_error_handler() callback and
* a registered shutdown function. Receive a callback from the interpreter
public static function prettyPrintTrace( array $trace, $pad = '' ) {
$text = '';
+ $level = 0;
foreach ( $trace as $level => $frame ) {
if ( isset( $frame['file'] ) && isset( $frame['line'] ) ) {
$text .= "{$pad}#{$level} {$frame['file']}({$frame['line']}): ";