From f6b9662783f522a00c387ccad5790cfce5bf31e1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 4 Jul 2008 20:56:02 -0400 Subject: [PATCH] error notices darcs-hash:20080705005602-84dde-3c99dbed5e431a9d4f1de124454296d4709eb115.gz --- lib/omb.php | 1 + lib/util.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lib/omb.php b/lib/omb.php index 9b0b1fd24e..89d7f4145a 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -130,6 +130,7 @@ function omb_broadcast_remote_subscribers($notice) { } } } + return true; } function omb_post_notice($notice, $remote_profile, $subscription) { diff --git a/lib/util.php b/lib/util.php index 6aff62786f..38e24bb25c 100644 --- a/lib/util.php +++ b/lib/util.php @@ -839,10 +839,16 @@ function common_real_broadcast($notice, $remote=false) { # Make sure we have the OMB stuff require_once(INSTALLDIR.'/lib/omb.php'); $success = omb_broadcast_remote_subscribers($notice); + if (!$success) { + common_log(LOG_ERROR, 'Error in OMB broadcast for notice ' . $notice->id); + } } if ($success) { require_once(INSTALLDIR.'/lib/jabber.php'); $success = jabber_broadcast_notice($notice); + if (!$success) { + common_log(LOG_ERROR, 'Error in jabber broadcast for notice ' . $notice->id); + } } // XXX: broadcast notices to SMS // XXX: broadcast notices to other IM -- 2.39.5