Some of the provision API is making it's move upstream, so we should switch to using the replacement functions.
So far only drush_log is in, but hopefully drush_set_error will make it in soon.
This will have the benefit of shrinking provision.inc , and removing our dependency on provision_errors.inc.
Moya:provision adrian$ grep -r provision_log * | wc
117 1009 12918
Moya:provision adrian$ grep -r provision_set_error * | wc
44 101 3499
The API for both of these functions were changed, as the drush_set_error function now also calls the logging system.
We have many places where we set the error, and then set the error message in the next line, so this is now done
with just one function call.
Changing how errors are logged is one of our first breaks with the 0.1 -> 0.2 communication layer. We will need to adjust the error handling code in hosting, but it will allow us to implement : http://drupal.org/node/275511.
IE: we can now map the errors generated to specific fields on the node the task is related to.
Comments
Comment #1
adrian commentedInstances of provision_set_error.
Instances of provision_log.
Comment #2
adrian commentedHandled most f these with a regexp.