From 5ef45fc55080489c9d69e3b1fa5d68d0d913b951 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Sat, 9 May 2020 09:30:20 +0200 Subject: [PATCH] fix: Fix log message and socket path (#17) Fixes a typo in the log messages and the default path to the unix socket. --- box/box.go | 4 ++-- cmd/root.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/box/box.go b/box/box.go index af0e2ab..250c28b 100644 --- a/box/box.go +++ b/box/box.go @@ -110,13 +110,13 @@ func onChange(klangbecken bool) { if err != nil { log.Error(err) } - log.Infof("Reponse from Liquidsoap '%s'", buffer) + log.Infof("Response from Liquidsoap '%s'", buffer) writeSock(socket, fmt.Sprintf("quit\n")) buffer, _, err = reader.ReadLine() if err != nil { log.Error(err) } - log.Infof("Reponse from Liquidsoap '%s'", buffer) + log.Infof("Response from Liquidsoap '%s'", buffer) socket.Close() } } diff --git a/cmd/root.go b/cmd/root.go index 8ac5907..2b9f594 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -76,7 +76,7 @@ func init() { rootCmd.PersistentFlags().StringVar(&device, "device", "Devices#0.PcpGpio#[tcp://127.0.0.1:93].LwrpInterpreter#0.LwrpRoot#0.Gpo#1.GpioPinState#1", "Pathfinder endpoint to sub to") rootCmd.PersistentFlags().StringVar(&pathfinderAuth, "pathfinder-auth", "Admin Admin", "Pathfinder user pass") rootCmd.PersistentFlags().BoolVar(&socket, "socket", false, "Enable socket writing") - rootCmd.PersistentFlags().StringVar(&socketPath, "socket-path", "/var/run/klangbecken.sock", "Path to Klangbecken socket") + rootCmd.PersistentFlags().StringVar(&socketPath, "socket-path", "/var/run/liquidsoap/klangbecken.sock", "Path to Klangbecken socket") rootCmd.PersistentFlags().StringVar(&socketPattern, "socket-pattern", "klangbecken.onair %v\n", "Socket message format as fmt string") rootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "Enable debug logs") }