+3
-2
internal/plc/scanner.go
+3
-2
internal/plc/scanner.go
···
7
7
"strings"
8
8
"time"
9
9
10
+
"github.com/acarl005/stripansi"
10
11
"github.com/atscan/atscanner/internal/config"
11
12
"github.com/atscan/atscanner/internal/log"
12
13
"github.com/atscan/atscanner/internal/storage"
···
407
408
LastChecked: time.Time{},
408
409
Status: storage.EndpointStatusUnknown,
409
410
}); err != nil {
410
-
log.Error("Error storing %s endpoint %s: %v", endpointType, endpoint, err)
411
+
log.Error("Error storing %s endpoint %s: %v", endpointType, stripansi.Strip(endpoint), err)
411
412
continue
412
413
}
413
414
414
-
log.Info("✓ Discovered new %s endpoint: %s", endpointType, endpoint)
415
+
log.Info("✓ Discovered new %s endpoint: %s", endpointType, stripansi.Strip(endpoint))
415
416
newEndpointCount++
416
417
}
417
418