Correct an error condition to return to caller.
Added debugging messages for config changes.
Convert to new logging macros.