Showing conn uri before attempting to connect

This commit is contained in:
Dan Buch 2012-11-12 19:48:22 -05:00
parent 03d3b542a2
commit 9f9a905f00

View File

@ -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()