Set logging preferences via command line flags. Closes #20
This commit is contained in:
@@ -29,7 +29,7 @@ func StartThumbnailGenerator(chunkPath string, variantIndex int) {
|
||||
}
|
||||
case <-quit:
|
||||
//TODO: evaluate if this is ever stopped
|
||||
log.Println("thumbnail generator has stopped")
|
||||
log.Debug("thumbnail generator has stopped")
|
||||
ticker.Stop()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ func (v *VideoSize) getString() string {
|
||||
func (t *Transcoder) Start() {
|
||||
command := t.getString()
|
||||
|
||||
log.Printf("Video transcoder started with %d stream variants.", len(t.variants))
|
||||
log.Tracef("Video transcoder started with %d stream variants.", len(t.variants))
|
||||
|
||||
_, err := exec.Command("sh", "-c", command).Output()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user