Skip to content

Commit

Permalink
fix: Fix log message and socket path (#17)
Browse files Browse the repository at this point in the history
Fixes a typo in the log messages and the default path to the unix socket.
  • Loading branch information
hairmare authored May 9, 2020
1 parent c3ed86d commit 5ef45fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions box/box.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 5ef45fc

Please sign in to comment.