Commit 79a42de
feat: add comprehensive logging for connection info debugging
Added detailed logging to help diagnose connection info display issues:
1. Connection Directory Reading:
- Log connections directory path (V5)
- Log number of entries found in directory (V5)
- Log when directory doesn't exist yet (V5)
- Log each worker's active connections with details (V4)
- Log total connections across all workers (V4)
- Log when no connections are found (V5)
2. Connection Reporting:
- Log when connections are reported to server (V4)
- Added connection count to worker summary log
- Changed summary format: restarts -> conns in output
- Log in both hypervisor and config fallback modes
3. Worker Environment Setup:
- Log TF_CONNECTION_INFO_PATH for each worker (V4)
- Helps verify correct file path is set for tensor-fusion-worker
These logs will help diagnose:
- Whether connection files are being created by tensor-fusion-worker
- Whether connection files are being read correctly by agent
- Whether connections are being reported to the server
- Path configuration issues
Note: Connection files are populated by tensor-fusion-worker when
clients connect. If no connections appear, the issue is likely in
tensor-fusion-worker not writing to TF_CONNECTION_INFO_PATH.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 474a3e3 commit 79a42de
1 file changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
459 | 461 | | |
460 | 462 | | |
461 | 463 | | |
| |||
805 | 807 | | |
806 | 808 | | |
807 | 809 | | |
| 810 | + | |
| 811 | + | |
808 | 812 | | |
809 | 813 | | |
810 | 814 | | |
| 815 | + | |
811 | 816 | | |
812 | 817 | | |
813 | 818 | | |
814 | 819 | | |
815 | 820 | | |
| 821 | + | |
| 822 | + | |
816 | 823 | | |
817 | 824 | | |
818 | 825 | | |
| |||
833 | 840 | | |
834 | 841 | | |
835 | 842 | | |
| 843 | + | |
836 | 844 | | |
837 | 845 | | |
838 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
839 | 857 | | |
840 | 858 | | |
841 | 859 | | |
| |||
1156 | 1174 | | |
1157 | 1175 | | |
1158 | 1176 | | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1159 | 1180 | | |
1160 | 1181 | | |
1161 | 1182 | | |
| |||
1171 | 1192 | | |
1172 | 1193 | | |
1173 | 1194 | | |
1174 | | - | |
1175 | | - | |
| 1195 | + | |
| 1196 | + | |
1176 | 1197 | | |
1177 | 1198 | | |
1178 | 1199 | | |
| |||
1208 | 1229 | | |
1209 | 1230 | | |
1210 | 1231 | | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1211 | 1235 | | |
1212 | 1236 | | |
1213 | 1237 | | |
| |||
0 commit comments