Using logging for debug messages; removed 'debug' setting
Removed 'debug' setting (now 'loglevel' setting)