Awight has uploaded a new change for review. https://gerrit.wikimedia.org/r/299295
Change subject: Logging to debug my logging ...................................................................... Logging to debug my logging 💔 Bug: Change-Id: Id2046340f21bd62192e4b280d2ce1df848e5aad7 --- M gateway_common/gateway.adapter.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface refs/changes/95/299295/1 diff --git a/gateway_common/gateway.adapter.php b/gateway_common/gateway.adapter.php index f294885..012b753 100644 --- a/gateway_common/gateway.adapter.php +++ b/gateway_common/gateway.adapter.php @@ -3723,6 +3723,10 @@ // as getStompTransaction, but I'm currently debugging that // function, so dump it all: $dump = json_encode( $this->getData_Unstaged_Escaped() ); + if ( $dump === false ) { + // Encoding failed. Why? + $dump = json_encode( array( 'json_encode_error' => json_last_error() ) ); + } $this->logger->info( self::COMPLETED_PREFACE . $dump ); } } -- To view, visit https://gerrit.wikimedia.org/r/299295 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id2046340f21bd62192e4b280d2ce1df848e5aad7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: deployment Gerrit-Owner: Awight <awi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits