Changed so debugs send debug messages and not error messages.