Showing conn uri before attempting to connect
This commit is contained in:
parent
03d3b542a2
commit
9f9a905f00
@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -16,6 +17,7 @@ var (
|
|||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
fmt.Printf("Connecting to %v...\n", *connUri)
|
||||||
conn, err := amqp.Dial(*connUri)
|
conn, err := amqp.Dial(*connUri)
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user