Skip to content

Commit

Permalink
a bit of additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
yurist committed Dec 16, 2016
1 parent d7e9769 commit 9a99562
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mqlambdatm.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var qMgrName string

func init() {
flag.StringVar(&initQ, "q", "", "initiation queue to serve")
flag.StringVar(&qMgrName, "m", "", "queue manager to connect, default queue manager if not given)")
flag.StringVar(&qMgrName, "m", "", "queue manager to connect, default queue manager if not given")
sLogLevel := flag.String("log-level", "info", "log level (DEBUG, INFO, WARN, ERROR, FATAL, PANIC)")

flag.Parse()
Expand All @@ -71,6 +71,11 @@ func main() {
log.Fatalln("-q parameter missing")
}

log.WithFields(log.Fields{
"INITQ": initQ,
"QMGR": qMgrName,
}).Info("parameters")

qMgr, mqreturn, err := ibmmq.Conn(qMgrName)
if err != nil {
log.WithFields(log.Fields{
Expand Down

0 comments on commit 9a99562

Please sign in to comment.