fix logging level used for a message: use debug() instead of error()