With fabio 1.5.8 I've set:
FABIO_log_access_target = "stdout"
FABIO_log_access_format = "combined"
and can see that fabio uses that after restart.
The only logs it output (besides route changes and errors are like this):
2018/03/04 14:44:55 [INFO] consul: Registered fabio with address "10.0.0.57"
2018/03/04 14:44:55 [INFO] consul: Registered fabio with tags ""
2018/03/04 14:44:55 [INFO] consul: Registered fabio with health check to "http://[10.0.0.57]:9998/health"
invalid log msg: 2018/03/04 14:45:41 Unsolicited response received on idle HTTP channel starting with "{\"status\": \"OK\", \"version\": \"2018.8.5\"}"; err=<nil>
invalid log msg: 2018/03/04 14:46:41 Unsolicited response received on idle HTTP channel starting with "{\"status\": \"OK\", \"version\": \"2018.8.5\"}"; err=<nil>
invalid log msg: 2018/03/04 14:47:41 Unsolicited response received on idle HTTP channel starting with "{\"status\": \"OK\", \"version\": \"2018.8.5\"}"; err=<nil>
invalid log msg: 2018/03/04 14:48:41 Unsolicited response received on idle HTTP channel starting with "{\"status\": \"OK\", \"version\": \"2018.8.5\"}"; err=<nil>
invalid log msg: 2018/03/04 14:49:41 Unsolicited response received on idle HTTP channel starting with "{\"status\": \"OK\", \"version\": \"2018.8.5\"}"; err=<nil> invalid
The json you see in there is the response of one of my service /status/ urls, which is used for health checking, also remotely through fabio.
It does work when I run it locally like: docker run --rm -it -p 9999:9999 -p 9998:9998 -e FABIO_registry_consul_addr=10.0.0.12:8500 -e FABIO_log_access_target="stdout" fabiolb/fabio.
Any idea what the culprit could be?
With fabio 1.5.8 I've set:
and can see that fabio uses that after restart.
The only logs it output (besides route changes and errors are like this):
The json you see in there is the response of one of my service
/status/urls, which is used for health checking, also remotely through fabio.It does work when I run it locally like:
docker run --rm -it -p 9999:9999 -p 9998:9998 -e FABIO_registry_consul_addr=10.0.0.12:8500 -e FABIO_log_access_target="stdout" fabiolb/fabio.Any idea what the culprit could be?