@@ -48,14 +48,14 @@ func (oh *OperatorHandler) ProbeOperatorHosts(ctx context.Context, operatorId st
48
48
operatorSocket := core .OperatorSocket (operatorInfo .Socket )
49
49
retrievalSocket := operatorSocket .GetRetrievalSocket ()
50
50
retrievalPortOpen := checkIsOperatorPortOpen (retrievalSocket , 3 , oh .logger )
51
- retrievalOnline , retrievalStatus := false , "port closed"
51
+ retrievalOnline , retrievalStatus := false , fmt . Sprintf ( "port closed or unreachable for %s" , retrievalSocket )
52
52
if retrievalPortOpen {
53
53
retrievalOnline , retrievalStatus = checkServiceOnline (ctx , "node.Retrieval" , retrievalSocket , 3 * time .Second )
54
54
}
55
55
56
56
dispersalSocket := operatorSocket .GetDispersalSocket ()
57
57
dispersalPortOpen := checkIsOperatorPortOpen (dispersalSocket , 3 , oh .logger )
58
- dispersalOnline , dispersalStatus := false , "port closed"
58
+ dispersalOnline , dispersalStatus := false , fmt . Sprintf ( "port closed or unreachable for %s" , dispersalSocket )
59
59
if dispersalPortOpen {
60
60
dispersalOnline , dispersalStatus = checkServiceOnline (ctx , "node.Dispersal" , dispersalSocket , 3 * time .Second )
61
61
}
@@ -115,11 +115,11 @@ func checkServiceOnline(ctx context.Context, serviceName string, socket string,
115
115
if list := r .GetListServicesResponse (); list != nil {
116
116
for _ , service := range list .GetService () {
117
117
if service .GetName () == serviceName {
118
- return true , " available"
118
+ return true , fmt . Sprintf ( "%s is available", serviceName )
119
119
}
120
120
}
121
121
}
122
- return false , "unavailable"
122
+ return false , fmt . Sprintf ( "grpc available but %s service not found at %s" , serviceName , socket )
123
123
}
124
124
125
125
func (oh * OperatorHandler ) GetOperatorsStake (ctx context.Context , operatorId string ) (* OperatorsStakeResponse , error ) {
0 commit comments