Disabling logging when not in debugging mode

Changed logging so we don't get logging messages printed when the application is not in debugging mode.