Skip to content

Commit f97bfdc

Browse files
author
Steve Manweiler
committed
debug print
1 parent b4e8157 commit f97bfdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

message.go

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package mqtt
1616

1717
import (
18+
"fmt"
1819
"github.com/eclipse/paho.mqtt.golang/packets"
1920
)
2021

@@ -95,6 +96,7 @@ func newConnectMsgFromOptions(options *ClientOptions) *packets.ConnectPacket {
9596
}
9697

9798
if username != "" {
99+
fmt.Printf("USERNAME: %q\n", username)
98100
m.UsernameFlag = true
99101
m.Username = username
100102
//mustn't have password without user as well

0 commit comments

Comments
 (0)