Use DBG messages instead of ERR when convenient.

Also improved the message content to know what the error/dbg message is
about.