@@ 63-77 (lines=15) @@ | ||
60 | * @param array $info |
|
61 | * @param bool $display_request |
|
62 | */ |
|
63 | protected function log( $class = '', $func = '', $line = '', EE_Transaction $transaction, $info = array(), $display_request = false ) { |
|
64 | if ( WP_DEBUG && false ) { |
|
65 | if ( $transaction instanceof EE_Transaction ) { |
|
66 | // don't serialize objects |
|
67 | $info = EEH_Debug_Tools::strip_objects( $info ); |
|
68 | if ( $transaction->ID() ) { |
|
69 | $info[ 'TXN_status' ] = $transaction->status_ID(); |
|
70 | $info[ 'TXN_reg_steps' ] = $transaction->reg_steps(); |
|
71 | $index = 'EE_Transaction: ' . $transaction->ID(); |
|
72 | EEH_Debug_Tools::log( $class, $func, $line, $info, $display_request, $index ); |
|
73 | } |
|
74 | } |
|
75 | } |
|
76 | ||
77 | } |
|
78 | ||
79 | ||
80 |
@@ 1070-1084 (lines=15) @@ | ||
1067 | * @param array $info |
|
1068 | * @param bool $display_request |
|
1069 | */ |
|
1070 | protected static function log( |
|
1071 | $class = '', |
|
1072 | $func = '', |
|
1073 | $line = '', |
|
1074 | EE_Transaction $transaction, |
|
1075 | $info = array(), |
|
1076 | $display_request = false |
|
1077 | ) { |
|
1078 | if (WP_DEBUG && false) { |
|
1079 | if ($transaction instanceof EE_Transaction) { |
|
1080 | // don't serialize objects |
|
1081 | $info = EEH_Debug_Tools::strip_objects($info); |
|
1082 | $info['TXN_status'] = $transaction->status_ID(); |
|
1083 | $info['TXN_reg_steps'] = $transaction->reg_steps(); |
|
1084 | if ($transaction->ID()) { |
|
1085 | $index = 'EE_Transaction: ' . $transaction->ID(); |
|
1086 | EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index); |
|
1087 | } |