diff options
author | Nick Vatamaniuc <vatamane@gmail.com> | 2016-07-18 02:33:41 -0400 |
---|---|---|
committer | Nick Vatamaniuc <vatamane@gmail.com> | 2016-07-18 03:05:52 -0400 |
commit | 9620ff68e19920d08a05a0d3254dc6dfbc93a7f8 (patch) | |
tree | 1edb974640c147545a9801d649e9ac97bb34074f | |
parent | d0b8d792b521047a68ef301d01b286d6781df300 (diff) | |
download | couchdb-clean-dev-run-startup.tar.gz |
Clean up ./dev/run outputclean-dev-run-startup
If connection succeeds eventually, don't report spurious error when retrying.
Turns `./dev/run` output from this:
```
[ * ] Check node at http://127.0.0.1:15984/ ... failed: [Errno socket error] [Errno 111] Connection refused
[ * ] Check node at http://127.0.0.1:25984/ ... ok
[ * ] Check node at http://127.0.0.1:35984/ ... ok
[ * ] Check node at http://127.0.0.1:15984/ ... ok
```
to this:
```
[ * ] Check node at http://127.0.0.1:15984/ ... ok
[ * ] Check node at http://127.0.0.1:25984/ ... ok
[ * ] Check node at http://127.0.0.1:35984/ ... ok
```
Cleaner and a bit less scary for new developers.
-rwxr-xr-x | dev/run | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -359,6 +359,7 @@ def check_node_alive(url): error = exc time.sleep(1) else: + error = None break if error is not None: raise error |