ing
This commit is contained in:
parent
a7480afdd5
commit
f54181f2d3
|
@ -4,7 +4,8 @@ import (
|
|||
cnsms "git.loafle.net/commons/service_matcher-go/ssh"
|
||||
ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig"
|
||||
"git.loafle.net/overflow/container_network/crawler/health"
|
||||
crawler "git.loafle.net/overflow/crawler-go"
|
||||
"git.loafle.net/overflow/crawler-go"
|
||||
"git.loafle.net/commons/logging-go"
|
||||
)
|
||||
|
||||
type SSHHealthCrawler struct {
|
||||
|
@ -30,7 +31,9 @@ func (c *SSHHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, e
|
|||
defer conn.Close()
|
||||
|
||||
if cErr != nil {
|
||||
result["Error"] = cErr.Error()
|
||||
sckEnum := health.ToSocketErrorEnum(cErr)
|
||||
result["Error"] = sckEnum.String()
|
||||
logging.Logger().Error("SSHHealthCrawler Connection Error: ", sckEnum.String())
|
||||
return result, cErr
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user