(connectionID uuid.UUID, connIndex uint8, location string, address net.IP, protocol Protocol)
| 56 | } |
| 57 | |
| 58 | func (o *Observer) logConnected(connectionID uuid.UUID, connIndex uint8, location string, address net.IP, protocol Protocol) { |
| 59 | o.log.Info(). |
| 60 | Int(management.EventTypeKey, int(management.Cloudflared)). |
| 61 | Str(LogFieldConnectionID, connectionID.String()). |
| 62 | Uint8(LogFieldConnIndex, connIndex). |
| 63 | Str(LogFieldLocation, location). |
| 64 | IPAddr(LogFieldIPAddress, address). |
| 65 | Str(LogFieldProtocol, protocol.String()). |
| 66 | Msg("Registered tunnel connection") |
| 67 | o.metrics.registerServerLocation(uint8ToString(connIndex), location) |
| 68 | } |
| 69 | |
| 70 | func (o *Observer) sendRegisteringEvent(connIndex uint8) { |
| 71 | o.sendEvent(Event{Index: connIndex, EventType: RegisteringTunnel}) |
no test coverage detected