@@ 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 |
@@ 1005-1019 (lines=15) @@ | ||
1002 | * @param array $info |
|
1003 | * @param bool $display_request |
|
1004 | */ |
|
1005 | protected static function log( $class = '', $func = '', $line = '', EE_Transaction $transaction, $info = array(), $display_request = false ) { |
|
1006 | if ( WP_DEBUG && false ) { |
|
1007 | if ( $transaction instanceof EE_Transaction ) { |
|
1008 | // don't serialize objects |
|
1009 | $info = EEH_Debug_Tools::strip_objects( $info ); |
|
1010 | $info['TXN_status'] = $transaction->status_ID(); |
|
1011 | $info['TXN_reg_steps'] = $transaction->reg_steps(); |
|
1012 | if ( $transaction->ID() ) { |
|
1013 | $index = 'EE_Transaction: ' . $transaction->ID(); |
|
1014 | EEH_Debug_Tools::log( $class, $func, $line, $info, $display_request, $index ); |
|
1015 | } |
|
1016 | } |
|
1017 | } |
|
1018 | ||
1019 | } |
|
1020 | ||
1021 | } |
|
1022 | // End of file EED_Messages.module.php |