Switch rest_server to debug mode.