Changed the debug messages from normal print to standard logging
Changed the debug messages from normal print to standard logging