Commit fe57b24
committed
fix: silence tracing while the tunnel picker is open
The iroh relay-actor (and other chatty modules under iroh::magicsock /
lib::*) write to the same TTY inquire is repainting on. The collision
looked like:
? Resume which tunnel? 2026-06-07T19:10:30Z INFO relay-actor: ...
roxy.net → http://127.0.0.1:11434 [d38f5f413beb]
— a log line spliced across the picker's first option, leaving the
terminal unreadable.
Wrap the EnvFilter in a reload handle exposed via a OnceLock so the
picker can engage a RAII QuietTracing guard that swaps the filter to
'error' for the lifetime of the inquire prompt and restores it on drop.
Captures the previous filter via EnvFilter's Display impl since it
doesn't implement Clone; round-trip through to_string()/try_new() is
the supported path.
This is a targeted fix for the symptom. A cleaner long-term move would
be to defer ListenNode construction past the picker so iroh hasn't
booted yet — but that requires TunnelService to support read-only
listing without a node, which is a larger refactor.1 parent 7de50c7 commit fe57b24
1 file changed
Lines changed: 56 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
22 | 33 | | |
23 | 34 | | |
24 | 35 | | |
| |||
286 | 297 | | |
287 | 298 | | |
288 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
289 | 304 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 305 | + | |
294 | 306 | | |
295 | 307 | | |
296 | 308 | | |
| |||
921 | 933 | | |
922 | 934 | | |
923 | 935 | | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
924 | 968 | | |
925 | 969 | | |
926 | 970 | | |
| |||
976 | 1020 | | |
977 | 1021 | | |
978 | 1022 | | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
984 | 1031 | | |
985 | 1032 | | |
986 | 1033 | | |
| |||
0 commit comments