Page MenuHomePhabricator

API should expose srv### somehow
Closed, ResolvedPublic

Description

At the moment when you encounter an error with the API, it can be difficult to trace that problem to a specific srv, because the api doesn't usually render in html. If possible we should find a way to expose the number trough a HTML response header or something.


Version: 1.17.x
Severity: enhancement

Details

Reference
bz24303

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:03 PM
bzimport set Reference to bz24303.

Obviously, only if the setting for it is set ;)

We get a HTML comment on normal pages...

And as a HTML comment in pretty printed api pages...

Should be trivial ish, if we can think of a sane way to do it.

Bryan.TongMinh wrote:

Just add it unconditionally to ApiResult.

Done in r69231, with unrelated stuff removed in the following commit.