use logging.error / logging.warn in appropriate places, instead of logging.debug

Title says it all.  Report errors as errors, and handled situations out of the norm as warnings.

This is in debug output; the most important thing is to avoid syntax errors :)