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