set log level to info in examples

add verbose flag to vm-cli example

update readme for vm-cli example
This commit is contained in:
onyx-and-iris
2022-09-29 18:05:21 +01:00
parent 3ab5daa61c
commit 6605d6e62d
9 changed files with 86 additions and 31 deletions

View File

@@ -2,10 +2,11 @@ package main
import (
"fmt"
"log"
"os"
"time"
log "github.com/sirupsen/logrus"
"github.com/onyx-and-iris/voicemeeter"
"github.com/andreykaipov/goobs"
@@ -41,6 +42,10 @@ func onEnd(vm *voicemeeter.Remote) {
vm.Vban.InStream[0].SetOn(false)
}
func init() {
log.SetLevel(log.InfoLevel)
}
func main() {
vm, err := vmConnect()
if err != nil {