From f54181f2d300fd1ba715660e5c07b08b2fce6253 Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 4 Jul 2018 18:46:27 +0900 Subject: [PATCH] ing --- crawler/health/ssh/SSHHealthCrawler.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 }