changed $log.debug to error for errors
Merge pull request #7 from connectid/log_error_not_debug

changed $log.debug to error for errors
offline if unknown or none