Skip to content

Log connection attempt errors

Jaime Martinez requested to merge log-api-conn-errors into master

What does this MR do?

Log connection attempts to the API.

{"level":"info","msg":"Checking GitLab internal API availability","time":"2021-04-07T05:14:38Z"}
{"error":"failed to connect to internal Pages API: Get \"https://gitlab.jaimem.me/api/v4/internal/pages/status\": dial tcp: lookup gitlab.jaimem.me on [::1]:53: read udp [::1]:36539-\u003e[::1]:53: read: connection refused","level":"warning","msg":"attempted to connect to the API","time":"2021-04-07T05:14:38Z"}

Before this change any connection attempts made to the API would fail silently, making it very hard to debug issues like gitlab#326117 (closed) and omnibus-gitlab#4243 (closed)

TODO

Edited by Jaime Martinez

Merge request reports