Improve REST debug output.