Debug statement in app controller for API