basho/riak — pull request #205 by bahamas10 (2012-08-13 04:52:25+00:00)
Title: "Attempting sudo" should be on stderr

My reasoning for this is that the "Attempting sudo..." output is more-or-less debug information that isn't relevant to the information you are asking for. I like the output a lot, but I would also like to be able to filter it out for non-interactive uses of these tools.

### Example

before

```
dave @ [ dave-01 :: (SunOS) ] ~ $ version=$(riak version)
dave @ [ dave-01 :: (SunOS) ] ~ $ echo "$version"
Attempting to restart script through sudo -H -u riak
riak-ee (1.2.0 2012-08-06) SmartOS i386
```
In the above example, `$version` now contains two lines, which I would have to `tail -1` to filter out.

after

```
dave @ [ dave-01 :: (SunOS) ] ~ $ version=$(riak version)
Attempting to restart script through sudo -H -u riak
dave @ [ dave-01 :: (SunOS) ] ~ $ echo "$version"
riak-ee (1.2.0 2012-08-06) SmartOS i386
```

In this example, the debug output is printed when the command is invoked, and the `$version` variable only contains the version string.