From d19e70f04d4904fa1ad469318017a1da3a43db35 Mon Sep 17 00:00:00 2001 From: Eleanor Davies Date: Thu, 25 Jul 2024 14:38:08 +0100 Subject: [PATCH] fix: allow error to pass when connecting to telnet page --- cmd/dlinkscraper/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dlinkscraper/main.go b/cmd/dlinkscraper/main.go index 760333a..c3a5c09 100644 --- a/cmd/dlinkscraper/main.go +++ b/cmd/dlinkscraper/main.go @@ -32,7 +32,7 @@ var ( // curl the telnet-enable page on the router response, err := http.Get("http://" + viper.GetString("address") + ":8000/atsq.txt") if err != nil { - logrus.WithError(err).Fatalln("error connecting to router telnet page") + logrus.WithError(err).Errorln("error connecting to router telnet page") } else { logrus.WithField("code", response).Infoln("Tenlet enable response code") }