Added logging when the app isn't in debug mode