Skip to content

Commit 3c1bdde

Browse files
committed
fix: warn when validator cannot join platform network
This is critical for challenge container communication. Previously the error was silently logged at debug level.
1 parent aef5359 commit 3c1bdde

File tree

1 file changed

+13
-2
lines changed
  • crates/challenge-orchestrator/src

1 file changed

+13
-2
lines changed

crates/challenge-orchestrator/src/lib.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,19 @@ impl ChallengeOrchestrator {
6060
docker.ensure_network().await?;
6161

6262
// Try to connect the current container to the network (if running in Docker)
63-
if let Err(e) = docker.connect_self_to_network().await {
64-
tracing::debug!("Could not connect to network (may not be in Docker): {}", e);
63+
// This is CRITICAL for communication with challenge containers
64+
match docker.connect_self_to_network().await {
65+
Ok(_) => {
66+
tracing::info!("Validator container connected to {} network", PLATFORM_NETWORK);
67+
}
68+
Err(e) => {
69+
tracing::warn!(
70+
"Could not connect validator to {} network: {}. \
71+
Challenge containers may not be reachable. \
72+
Ensure validator is started with --network {} or add network in docker-compose.",
73+
PLATFORM_NETWORK, e, PLATFORM_NETWORK
74+
);
75+
}
6576
}
6677

6778
let challenges = Arc::new(RwLock::new(HashMap::new()));

0 commit comments

Comments
 (0)