Change DEBUG to logging