r80218 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80217‎ | r80218 | r80219 >
Date:00:43, 14 January 2011
Author:awjrichards
Status:deferred
Tags:
Comment:
Added logging for contact and location updates
Modified paths:
  • /civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc
@@ -153,6 +153,8 @@
154154 $contact['display_name'] = trim($contact['first_name'] . ' ' . $contact['last_name']);
155155 $contact_result = &civicrm_contact_add( $contact );
156156
 157+ watchdog( 'queue2civicrm', 'Result for updating contact: %contact', array( '%contact' => print_r( $contact_result, true )), WATCHDOG_DEBUG );
 158+
157159 return $contact_result;
158160 }
159161
@@ -211,7 +213,7 @@
212214 'email' => $msg['email']
213215 );
214216 $location_result = &civicrm_location_update( $address );
215 -
 217+ watchdog( 'queue2civicrm', 'Result for updating location: %location', array( '%location' => print_r( $location_result, true )), WATCHDOG_DEBUG );
216218 return $location_result;
217219 }
218220

Status & tagging log