diff --git a/crawler/health/ssh/SSHHealthCrawler.go b/crawler/health/ssh/SSHHealthCrawler.go index 708472d..d1cf5ee 100644 --- a/crawler/health/ssh/SSHHealthCrawler.go +++ b/crawler/health/ssh/SSHHealthCrawler.go @@ -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 }