Skip to content

🎧 Your Personal Streaming Service

Better logging

Deluan92682f65d8b7
diff --git a/engine/scrobbler.go b/engine/scrobbler.go
index 9ebb14f49..b1e84a740 100644
--- a/engine/scrobbler.go
+++ b/engine/scrobbler.go
@@ -54,13 +54,14 @@ func (s *scrobbler) detectSkipped(playerId int, trackId string) {
diff := np.Start.Sub(prev.Start)
if diff < minSkipped || diff > maxSkipped {
prev = np
+ beego.Debug(fmt.Sprintf("-- Playtime for track %s was %v. Not skipping.", prev.TrackId, diff))
continue
}
err = s.itunes.MarkAsSkipped(prev.TrackId, prev.Start.Add(time.Duration(1)*time.Minute))
if err != nil {
beego.Warn("Error skipping track", prev.TrackId)
} else {
- beego.Debug("Skipped track", prev.TrackId)
+ beego.Debug("-- Skipped track", prev.TrackId)
}
}
}