tBe a little bit more informative in dam-gource. - tordam - A library for peer discovery inside the Tor network HTML git clone https://git.parazyd.org/tordam DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 8e1bca1527e57fa25eaf037fc2de06b052011fe1 DIR parent dbd1fa38db692acf68ba18b78564e2ed6bdd611b HTML Author: parazyd <parazyd@dyne.org> Date: Sun, 28 Oct 2018 12:40:33 +0100 Be a little bit more informative in dam-gource. Diffstat: M cmd/dam-gource/main.go | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/cmd/dam-gource/main.go b/cmd/dam-gource/main.go t@@ -2,6 +2,7 @@ package main import ( "fmt" + "os" lib "github.com/parazyd/tor-dam/pkg/damlib" ) t@@ -10,9 +11,11 @@ func main() { pubsub := lib.RedisCli.Subscribe(lib.PubSubChan) _, err := pubsub.Receive() lib.CheckError(err) + fmt.Fprintf(os.Stderr, "Subscribed to %s channel in Redis\n", lib.PubSubChan) ch := pubsub.Channel() + fmt.Fprintf(os.Stderr, "Listening to messages...\n") for msg := range ch { fmt.Println(msg.Payload) }