Add logging statement to mainCtrl for debugging
Strip log statements on prod