removing some unecessary logs
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package iracing
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"time"
|
||||
|
||||
"github.com/ESilva15/goirsdk"
|
||||
@@ -24,7 +23,7 @@ func IsRunning() bool {
|
||||
// We now check for some consecutive data events
|
||||
for range 3 {
|
||||
if !irUtils.CheckValidDataEvent(1 * time.Second) {
|
||||
slog.Debug("timed out waiting for DataValidEvent")
|
||||
// slog.Debug("Timed out waiting for DataValidEvent")
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,6 +82,8 @@ func (t *TelemetryService) onFindProvider(prov providers.Provider) {
|
||||
|
||||
func (t *TelemetryService) onProviderStopsMidStream() {
|
||||
// clear the current provider
|
||||
// TODO: now we need to also clear the devices to restart everything,
|
||||
// if the stream stopped we have to restart the devices and everything
|
||||
t.logger.Info("cleaning dropped provider and restarting lookup service")
|
||||
t.dropActiveProvider()
|
||||
go t.FindProvider(t.CtxMonitor)
|
||||
@@ -105,7 +107,6 @@ func (t *TelemetryService) FindProvider(ctx context.Context) {
|
||||
t.onFindProvider(prov)
|
||||
return
|
||||
}
|
||||
t.logger.Debug(" wasn't read")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user