opdemand/deis — pull request #766 by bacongobbler (2014-04-17 19:58:14+00:00)
Title: fix(logger): fix publish loop

before, the logger's publish loop would be searching for a TCP
connection. Since the logger runs on UDP, the publish loop would not find it running and would run forever. This changes netstat to search over UDP for the logger instead, allowing it to publish its values to etcd.

fixes #738

Surprisingly, as soon as I rebooted deis-logger with this change, the application logs became available:

```
(venv)><> deis logs --app=usable-woodshed
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: [2014-04-17 18:25:47] INFO WEBrick 1.3.1
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: [2014-04-17 18:25:47] INFO ruby 2.0.0 (2014-02-24) [x86_64-linux]
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: [2014-04-17 18:25:47] INFO WEBrick::HTTPServer#start: pid=16 port=5000
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: 172.17.8.1 - - [17/Apr/2014 18:27:19] "GET / HTTP/1.1" 200 11 0.0022
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: 172.17.8.1 - - [17/Apr/2014 18:27:19] "GET /favicon.ico HTTP/1.1" 404 18 0.0005
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: 172.17.8.1 - - [17/Apr/2014 18:27:19] "GET /favicon.ico HTTP/1.1" 404 18 0.0007
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: 172.17.8.1 - - [17/Apr/2014 18:39:49] "GET / HTTP/1.1" 200 11 0.0017
```