Fixed a bunch of annoying deprecation notices

Change-Id: Ic2eb0ea94d8e27574f7dc76f1b448ccd6c01bb98
This commit is contained in:
Aaron Schulz 2013-10-18 13:58:13 -07:00
parent bbadd9b3df
commit dbbc247d9a

View file

@ -140,7 +140,7 @@ class JobQueueFederated extends JobQueue {
return false; return false;
} }
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
} }
@ -182,7 +182,7 @@ class JobQueueFederated extends JobQueue {
try { try {
$count += $queue->$method(); $count += $queue->$method();
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
} }
@ -242,7 +242,7 @@ class JobQueueFederated extends JobQueue {
$ok = $queue->doBatchPush( $jobBatch, $flags | self::QOS_ATOMIC ); $ok = $queue->doBatchPush( $jobBatch, $flags | self::QOS_ATOMIC );
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
$ok = false; $ok = false;
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
if ( $ok ) { if ( $ok ) {
$key = $this->getCacheKey( 'empty' ); $key = $this->getCacheKey( 'empty' );
@ -264,7 +264,7 @@ class JobQueueFederated extends JobQueue {
$ok = $queue->doBatchPush( $jobBatch, $flags | self::QOS_ATOMIC ); $ok = $queue->doBatchPush( $jobBatch, $flags | self::QOS_ATOMIC );
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
$ok = false; $ok = false;
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
if ( $ok ) { if ( $ok ) {
$key = $this->getCacheKey( 'empty' ); $key = $this->getCacheKey( 'empty' );
@ -301,7 +301,7 @@ class JobQueueFederated extends JobQueue {
$job = $queue->pop(); $job = $queue->pop();
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
$job = false; $job = false;
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
if ( $job ) { if ( $job ) {
$job->metadata['QueuePartition'] = $partition; $job->metadata['QueuePartition'] = $partition;
@ -353,7 +353,7 @@ class JobQueueFederated extends JobQueue {
try { try {
$queue->doDelete(); $queue->doDelete();
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
} }
} }
@ -363,7 +363,7 @@ class JobQueueFederated extends JobQueue {
try { try {
$queue->waitForBackups(); $queue->waitForBackups();
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
} }
} }
@ -426,7 +426,7 @@ class JobQueueFederated extends JobQueue {
return null; // not supported on all partitions; bail return null; // not supported on all partitions; bail
} }
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
} }
return array_values( array_unique( $result ) ); return array_values( array_unique( $result ) );
@ -445,7 +445,7 @@ class JobQueueFederated extends JobQueue {
return null; // not supported on all partitions; bail return null; // not supported on all partitions; bail
} }
} catch ( JobQueueError $e ) { } catch ( JobQueueError $e ) {
wfDebugLog( 'exception', $e->getLogMessage() ); MWExceptionHandler::logException( $e );
} }
} }
return $result; return $result;