Skip to content

Commit

Permalink
Extra debug info (temporary)
Browse files Browse the repository at this point in the history
Bug: T346182
Change-Id: Id834bdaebb327e94be765b0f887d4dcbac69361c
  • Loading branch information
eileenmcnaughton committed Sep 12, 2023
1 parent 297d73b commit be43e13
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ protected function getBaoName() {
* @return array
*/
public function baoToArray($bao, $input) {
if (!method_exists($bao, 'fields')) {
\Civi::log('wmf')->error('Temporary logging - {bao} {input} {backtrace}', ['bao' => $bao, 'input' => $input, 'backtrace' => \CRM_Core_Error::formatBacktrace(debug_backtrace())]);
throw new \CRM_Core_Exception('temporary exception fail - should give backtrace?');
}
$entityFields = array_column($bao->fields(), 'name');
$inputFields = array_map(function($key) {
return explode(':', $key)[0];
Expand Down

0 comments on commit be43e13

Please sign in to comment.