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.
Merge pull request #52 from epaaj/patch-1

Disabling logging when not in debugging mode