Page MenuHomePhabricator

Impossible to debug exceptions in API requests
Closed, ResolvedPublic

Description

Since API catches exceptions, it is impossible to debug them. I have enabled exception logging and backtraces, but only thing in php error log is the following:

2012-10-29 18:01:04 translatewiki.net mediawiki-bw_: [43eeba39] [no req] Exception from line 544 of /www/translatewiki.net/w/includes/content/ContentHandler.php: Format json is not supported for content model wikitext

In addition the http requests are served with HTTP 200, which makes it impossible to grep the access logs for causes.


Version: 1.21.x
Severity: major

Details

Reference
bz41494

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:52 AM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz41494.
bzimport added a subscriber: Unknown Object (MLST).

Gerrit change #30653 should enable use of $wgLogExceptionBacktrace to log the backtrace for non-API exceptions caught by the API.

successfully merged