Commit 476ff360 authored by Vesa-Pekka Palmu's avatar Vesa-Pekka Palmu

Comment out too verbose logging

This should be moved behind options, currently a raspberry pi
can't handle the output
parent 372e42ea
Pipeline #62240575 passed with stages
in 9 minutes and 55 seconds
......@@ -74,7 +74,7 @@ func runMilluminClockClient(clockClient *clock.Client, listenChan chan millumin.
// TODO: also refresh on tick
if err := updateMilluminClock(clockClient, state); err != nil {
log.Fatalf("update clock: %v", err)
} else {
} else if options.Debug {
log.Printf("update clock")
}
}
......@@ -99,7 +99,7 @@ func runMittiClockClient(clockClient *clock.Client, listenChan chan mitti.State)
// TODO: also refresh on tick
if err := updateMittiClock(clockClient, state); err != nil {
log.Fatalf("update clock: %v", err)
} else {
} else if options.Debug {
log.Printf("update clock")
}
}
......@@ -147,8 +147,6 @@ func main() {
}
}
fmt.Printf("fooo")
regexp, err := regexp.Compile("(?i)" + options.Ignore)
if err != nil {
log.Fatalf("Invalid --millumin-ignore-layer=%v: %v", options.Ignore, err)
......
......@@ -2,7 +2,7 @@ package millumin
import (
"fmt"
"log"
// "log"
"time"
)
......@@ -44,7 +44,7 @@ func (state *LayerState) mediaStarted(mediaStarted MediaStarted) {
state.Paused = false
state.Time = 0.0
log.Printf("Media started: %v", state)
// log.Printf("Media started: %v", state)
}
func (state *LayerState) mediaPaused(mediaPaused MediaPaused) {
......@@ -53,14 +53,14 @@ func (state *LayerState) mediaPaused(mediaPaused MediaPaused) {
state.Info = mediaPaused.MediaInfo
state.Duration = mediaPaused.MediaInfo.Duration
log.Printf("Media paused: %v", state)
// log.Printf("Media paused: %v", state)
}
func (state *LayerState) mediaStopped(mediaStopped MediaStopped) {
// millumin sends mediaStarted -> mediaStopped when switching medias
// ignore the following mediaStopped if we have already started a different media
if state.Info.Index > 0 && mediaStopped.MediaInfo.Index != state.Info.Index {
log.Printf("Media stopped (ignore): %v", state)
// log.Printf("Media stopped (ignore): %v", state)
return
}
......@@ -70,7 +70,7 @@ func (state *LayerState) mediaStopped(mediaStopped MediaStopped) {
state.Info = mediaStopped.MediaInfo
state.Duration = mediaStopped.MediaInfo.Duration
log.Printf("Media stopped: %v", state)
// log.Printf("Media stopped: %v", state)
}
func (state *LayerState) mediaTime(mediaTime MediaTime) {
......@@ -79,5 +79,5 @@ func (state *LayerState) mediaTime(mediaTime MediaTime) {
state.Duration = mediaTime.Duration
state.Time = mediaTime.Value
log.Printf("Media time: %v", state)
// log.Printf("Media time: %v", state)
}
......@@ -40,7 +40,7 @@ func (listener *Listener) update() {
for listenChan := range listener.listeners {
listenChan <- state
}
log.Printf("mitti state update: %v\n", listener.state)
// log.Printf("mitti state update: %v\n", listener.state)
}
func (listener *Listener) handleTogglePlay(msg *osc.Message) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment