I would remove it. Code for explicit tests and debugging should not enter master. One can always add it during dev.

Security risks are probably minimal, but depends on the sphinxsearch library we use (so out of our hands).