net: Thread a "log tag" down into ws2/chat

This is mainly important for chat connections, which are often paired
auth and unauth, and thus result in two very similar log lines right
next to each other. For now the tags are just the constant strings
"auth", "unauth", and "cdsi", plus some hardcoded values for the old
TransportConnector interfaces (and examples and tests); we may want to
refine them in the future.
This commit is contained in:
Jordan Rose
2025-01-14 12:54:02 -08:00
committed by GitHub
parent 0b9a142268
commit bcebd8ad4a
21 changed files with 297 additions and 105 deletions

View File

@@ -137,7 +137,7 @@ async fn main() {
async move {
tokio::time::sleep(START_NEXT_DELAY * i).await;
log::info!("connecting via: {route:?}");
connector.connect(route).await
connector.connect(route, "main".into()).await
}
}));
let mut connection = connect_attempts