cloudflared-mirror/origin
Nuno Diegues 1ee540a166 TUN-5368: Log connection issues with LogLevel that depends on tunnel state
Connections from cloudflared to Cloudflare edge are long lived and may
break over time. That is expected for many reasons (ranging from network
conditions to operations within Cloudflare edge). Hence, logging that as
Error feels too strong and leads to users being concerned that something
is failing when it is actually expected.

With this change, we wrap logging about connection issues to be aware
of the tunnel state:
 - if the tunnel has no connections active, we log as error
 - otherwise we log as warning
2021-11-10 09:00:05 +00:00
..
cloudflare_status_page.go TUN-1350: Enhance error messages with cloudflarestatus.com link, if relevant 2019-01-18 13:37:05 -06:00
cloudflare_status_page_test.go TUN-3837: Remove automation_email from cloudflared status page test 2021-02-01 15:07:37 +00:00
conn_aware_logger.go TUN-5368: Log connection issues with LogLevel that depends on tunnel state 2021-11-10 09:00:05 +00:00
external_control.go Fixed connection error handling by removing duplicated errors, standardizing on non-pointer error types 2021-01-22 10:58:06 -06:00
metrics.go TUN-4067: Reformat code for consistent import order, grouping, and fix formatting. Added goimports target to the Makefile to make this easier in the future. 2021-03-24 10:53:29 -05:00
pool.go TUN-4063: Cleanup dependencies between packages. 2021-03-09 14:02:59 +00:00
proxy.go TUN-4889: Add back appendtagheaders function 2021-08-23 15:29:48 +00:00
proxy_posix_test.go TUN-4873: Disable unix domain socket test for windows unit tests 2021-08-03 12:08:08 +01:00
proxy_test.go TUN-4889: Add back appendtagheaders function 2021-08-23 15:29:48 +00:00
reconnect.go TUN-3863: Consolidate header handling logic in the connection package; move headers definitions from h2mux to packages that manage them; cleanup header conversions 2021-03-29 21:57:56 +00:00
reconnect_test.go TUN-3863: Consolidate header handling logic in the connection package; move headers definitions from h2mux to packages that manage them; cleanup header conversions 2021-03-29 21:57:56 +00:00
supervisor.go TUN-5368: Log connection issues with LogLevel that depends on tunnel state 2021-11-10 09:00:05 +00:00
tunnel.go TUN-5368: Log connection issues with LogLevel that depends on tunnel state 2021-11-10 09:00:05 +00:00
tunnel_test.go TUN-5285: Fallback to HTTP2 immediately if connection times out with no network activity 2021-11-04 10:42:53 +00:00
tunnelsforha.go TUN-1270: cloudflared panic (HA metrics missing label) 2018-12-11 11:41:49 -06:00