| 1 | # Reading quality and problem reports |
| 2 | |
| 3 | What Calls logs about calls, and how to find it (spec §15.26, Paul's ruling |
| 4 | of 2026-10-03). The log is the only place these live: nothing is in the |
| 5 | database. CARLOS keeps an app's log for **seven days** (or 50 MiB of |
| 6 | compressed log per app per box, whichever comes first), so look within the |
| 7 | week. |
| 8 | |
| 9 | ## The lines |
| 10 | |
| 11 | Both kinds are JSON lines, so `carlos logs --field k=v` can filter on their |
| 12 | top-level members (it reads fields only from JSON lines; `--grep` matches the |
| 13 | `msg` of a JSON line and nothing else). |
| 14 | |
| 15 | - `calls: quality` (INFO), one per client every 30 s in a call and one at |
| 16 | leave (`final: true`). Top level: `call` (the call tag, shared by everyone |
| 17 | in one call), `peer` (this participation's tag), `app` (web, mac, iphone, |
| 18 | ipad), `version`, `browser`, `browserVersion`, `os`, `osVersion`, |
| 19 | `final`, `seconds`, `remotes`, and the headlines `relay`, `maxLossPct`, |
| 20 | `maxRtt`, `freezes`, `reconnecting`, the screen's counts when not zero, |
| 21 | and `autoReport` (a reference) when the client sent an automatic report |
| 22 | with that window. `report` holds `devices` (kinds, never names) and the |
| 23 | call-wide `events`; it is nested, so `carlos logs` does not print it. |
| 24 | - `calls: quality peer` (INFO, since 2026-10-28, spec §15.29), one per |
| 25 | remote peer after each `calls: quality` line, flat so `carlos logs` prints |
| 26 | all of it: `call`, `peer`, `remote` (the other person's tag), the path |
| 27 | (`pathLocal`, `pathRemote`, `pathProtocol`, `relayRegion`), round trip and |
| 28 | jitter (`rtt`, `rttAvg`, `rttMax`, `jitterAvg`, `jitterMax`), this side's |
| 29 | candidates (`candHost`, `candSrflx`, `candRelay`, `candRemote…`, |
| 30 | `directOk`, `localDirectOk`, `udpOk`), and `outAudio…`, `outCamera…`, |
| 31 | `outScreen…`, `inAudio…`, `inCamera…`, `inScreen…` (`Kbps`, `Width`, |
| 32 | `Height`, `Fps`, `LossPct`, `Limit`, `LimitedBandwidthSeconds`, |
| 33 | `Encoder`, `Decoder`, `Codec`, `Mode`, `Freezes`, `FreezeSeconds`, |
| 34 | `Dropped`, …), and the events. Only what the client measured is there. |
| 35 | - `calls: problem report` (WARN), when someone presses Send in Report a |
| 36 | problem: `ref` (what they were shown), `call`, `peer`, the client fields, |
| 37 | `live` (still in the call, or within ten minutes after), `note` and |
| 38 | `parts`. |
| 39 | - `calls: problem report diagnostics` (WARN): the diagnostics text in |
| 40 | `parts` lines, each with `ref`, `part`, `of` and `text`. |
| 41 | - `calls: auto report` and `calls: auto report diagnostics` (WARN, since |
| 42 | 2026-10-28): the same, sent by a client on its own when its call was |
| 43 | struggling, with `trigger` (`freezes`: 3 or more in two windows running; |
| 44 | `rtt`: over 800 ms in two windows running; `reconnecting`: shown more than |
| 45 | 5 s; `screen`: the screen recovery went past keyframes) in place of a |
| 46 | note. At most one every ten minutes and three per participation; off when |
| 47 | the person's quality reports are off, or `CALLS_QUALITY_REPORTS=off`. |
| 48 | |
| 49 | Tags are random. They cannot be turned back into a meeting or a person, and |
| 50 | nothing else in the log can be matched to them. The way from "the call at |
| 51 | 15:40" to a tag is the time. |
| 52 | |
| 53 | ## In the console |
| 54 | |
| 55 | The Carloku console's log view for the app (account `oficina`, app `calls`): |
| 56 | filter the message for `calls: quality` or `calls: problem report`, then by |
| 57 | `call` once you have a tag. |
| 58 | |
| 59 | ## With carlos |
| 60 | |
| 61 | # Every report in the last two hours |
| 62 | carlos logs --app calls --account oficina --since 2h -n 5000 --grep '^calls: (quality|problem report|auto report)' |
| 63 | |
| 64 | # One call, every line from every person in it |
| 65 | carlos logs --app calls --account oficina --since 24h -n 5000 --field call=3k2jq7m4xw5zt6ab |
| 66 | |
| 67 | # A problem report someone quoted, or an automatic report's reference, with its diagnostics |
| 68 | carlos logs --app calls --account oficina --since 7d -n 5000 --field ref=K7Q2M9PD |
| 69 | |
| 70 | # Every automatic report this week |
| 71 | carlos logs --app calls --account oficina --since 7d --grep '^calls: auto report$' |
| 72 | |
| 73 | # One call's per-peer detail: paths, candidates, sizes, freezes, encoders |
| 74 | carlos logs --app calls --account oficina --since 24h -n 5000 --field call=3k2jq7m4xw5zt6ab --grep '^calls: quality peer$' |
| 75 | |
| 76 | # Connections whose own leg went through the relay |
| 77 | carlos logs --app calls --account oficina --since 24h --grep '^calls: quality peer$' --field pathLocal=relay |
| 78 | |
| 79 | # Every problem report this week |
| 80 | carlos logs --app calls --account oficina --since 7d --grep '^calls: problem report$' |
| 81 | |
| 82 | # Reports from the Mac app, or from one version of it |
| 83 | carlos logs --app calls --account oficina --since 24h --grep '^calls: quality$' --field app=mac |
| 84 | carlos logs --app calls --account oficina --since 24h --grep '^calls: quality$' --field app=mac --field version=0.4.9 |
| 85 | |
| 86 | # Windows where media went through the relay |
| 87 | carlos logs --app calls --account oficina --since 24h --grep '^calls: quality$' --field relay=true |
| 88 | |
| 89 | # A window of time, in UTC (carlos prints and reads UTC) |
| 90 | carlos logs --app calls --account oficina --since 2026-10-03T14:30:00Z --until 2026-10-03T15:00:00Z --grep '^calls: quality$' |
| 91 | |
| 92 | `-n` is at most 5,000 lines; a 30-second cadence is about 120 lines an hour |
| 93 | per person, so narrow `--since` for a busy week. |
| 94 | |
| 95 | ## The summary |
| 96 | |
| 97 | `cmd/quality-summary` turns those lines into an account of each call: |
| 98 | |
| 99 | go run ./cmd/quality-summary --since 3h # every call in the last three hours |
| 100 | go run ./cmd/quality-summary --since 24h --at 15:40 # the call at 15:40, Europe/Dublin, today |
| 101 | go run ./cmd/quality-summary --call 3k2jq7m4xw5zt6ab --since 24h |
| 102 | go run ./cmd/quality-summary --problem K7Q2M9PD --since 7d |
| 103 | carlos logs --app calls --account oficina --since 2h -n 5000 | go run ./cmd/quality-summary |
| 104 | |
| 105 | With nothing piped in it runs `carlos logs` itself. It prints, per call: |
| 106 | |
| 107 | Call callcallcallcall 2026-10-03 15:41:00 – 15:41:30 Europe/Dublin (30s), 2 people, 1 problem report(s) |
| 108 | People |
| 109 | aaaaaa mac 0.4.9 macos 26.0.1 2 reports (input bluetooth, output built-in) |
| 110 | bbbbbb web de04e2d chrome 141.0 on windows 10.0 1 reports |
| 111 | Connections (what the first heard from the second) |
| 112 | aaaaaa ← bbbbbb worst loss 10.0% (video), worst RTT 48 ms, freezes 2 (1.5 s), audio concealed 1.00%, path host→host udp, relay 50% |
| 113 | bbbbbb ← aaaaaa worst loss 0.0%, worst RTT 180 ms, freezes 0 (0.0 s), path relay→srflx tls, relay 100% |
| 114 | Events |
| 115 | 15:41:00 aaaaaa: "Reconnecting to bbbbbb…" (4.2 s) |
| 116 | 15:41:05 bbbbbb: "aaaaaa can't hear you yet" (3.0 s) |
| 117 | 15:41:30 aaaaaa left (final report) |
| 118 | Problem K7Q2M9PD at 15:41:20 from aaaaaa (mac): "video froze" |
| 119 | |
| 120 | From the peer lines (since 2026-10-28) it adds, per call: |
| 121 | |
| 122 | Paths (each side's own account) |
| 123 | mmmmmm → ssssaf path srflx→relay udp, relay 100% via eu-west-1, RTT avg 398 ms, RTT max 1288 ms, jitter max 40 ms, … |
| 124 | mmmmmm's candidates: gathered host 3, srflx 1, relay 2; offered host 2, srflx 0, relay 1; direct pair worked no, own network reached out yes, UDP yes |
| 125 | ssssaf → mmmmmm path relay→srflx tls, relay 100% via eu-west-1, RTT avg 402 ms, RTT max 1312 ms, jitter max 96 ms, … |
| 126 | ssssaf's candidates: gathered host 2, srflx 0, relay 1; offered host 1, srflx 1, relay 1; direct pair worked no, own network reached out no, UDP no |
| 127 | Why relayed |
| 128 | mmmmmm – ssssaf ssssaf found no public address (no srflx candidate: UDP to the outside blocked); → ssssaf's network forced the relay |
| 129 | Media (sender → receiver) |
| 130 | mmmmmm → ssssaf screen sent 1920×1246, 4.0 fps, 900 kbps, limited by bandwidth (30 s; cpu 0 s), mode balanced, encoder hardware, … received 1920×1246, 4.0 fps, 900 kbps, freezes 3 (9.0 s), stalls 1, decoder software, h264 |
| 131 | Automatic report 9P3J52YS at 14:02:41 from ssssaf (web), trigger freezes |
| 132 | |
| 133 | "Own network reached out" is whether a pair whose local end was not the |
| 134 | relay ever worked; "UDP" whether any pair went over UDP all the way. A side |
| 135 | with no srflx candidate never found its public address; a side whose path |
| 136 | starts `relay→` is the one whose own leg needed the relay. |
| 137 | |
| 138 | "Worst loss" is the worst 30-second window's inbound packet loss, of audio, |
| 139 | camera or screen; "relay" is the share of windows whose path went through the |
| 140 | relay; "audio concealed" is the share of received audio the receiver had to |
| 141 | make up. |
| 142 | |
| 143 | ## Turning it off |
| 144 | |
| 145 | `carlos env set --app calls --account oficina CALLS_QUALITY_REPORTS=off`, |
| 146 | then `carlos restart` (which drops live calls), stops the automatic reports — |
| 147 | quality reports and the automatic Report a problem both: the endpoints answer |
| 148 | 204 and clients stop sending for that call. Report a |
| 149 | problem keeps working. `carlos env unset --app calls --account oficina |
| 150 | CALLS_QUALITY_REPORTS` and a restart turn them back on. |
| 151 | |