Sbisson has uploaded a new change for review. https://gerrit.wikimedia.org/r/288694
Change subject: Log warning on failure to fetch foreign notifications ...................................................................... Log warning on failure to fetch foreign notifications Change-Id: I92bc0ea2aebc1992d43dc0cd560137090b4d5857 --- M includes/api/ApiEchoNotifications.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo refs/changes/94/288694/1 diff --git a/includes/api/ApiEchoNotifications.php b/includes/api/ApiEchoNotifications.php index cd458ba..6f135fc 100644 --- a/includes/api/ApiEchoNotifications.php +++ b/includes/api/ApiEchoNotifications.php @@ -1,5 +1,7 @@ <?php +use MediaWiki\Logger\LoggerFactory; + class ApiEchoNotifications extends ApiQueryBase { /** * @var EchoForeignNotifications @@ -379,6 +381,8 @@ if ( $parsed && isset( $parsed['query']['notifications'] ) ) { $results[$wiki] = $parsed['query']['notifications']; } + } else { + LoggerFactory::getInstance( 'Echo' )->warning( "Failed to fetch notifications from $wiki. Code: $statusCode." ); } } -- To view, visit https://gerrit.wikimedia.org/r/288694 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I92bc0ea2aebc1992d43dc0cd560137090b4d5857 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Echo Gerrit-Branch: master Gerrit-Owner: Sbisson <sbis...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits