From f8e03276562b537b1efabcdf956c573667dccb94 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 8 May 2012 11:02:55 +1000 Subject: [PATCH] Fix for r113993: don't log UsageException instances Change-Id: I205252534fcf7a0ee486938123c1e15cd036f4f1 --- includes/api/ApiMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 7f412bc108..10540a3984 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -362,7 +362,7 @@ class ApiMain extends ApiBase { $this->executeAction(); } catch ( Exception $e ) { // Log it - if ( $e instanceof MWException ) { + if ( !( $e instanceof UsageException ) ) { wfDebugLog( 'exception', $e->getLogMessage() ); } -- 2.20.1