mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-07 00:13:30 +00:00
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:
@@ -2,9 +2,10 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/onyx-and-iris/voicemeeter"
|
||||
)
|
||||
|
||||
@@ -54,6 +55,10 @@ func (o observer) OnUpdate(subject string) {
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
log.SetLevel(log.InfoLevel)
|
||||
}
|
||||
|
||||
// main connects to Voiceemeter, registers observer for updates
|
||||
// runs updates for 30 seconds and then deregisters observer.
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user