Skip to content

Commit 977b05f

Browse files
committed
SessionID to logs added
1 parent b142eab commit 977b05f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/sorokinmax/smpp/pdu"
1414
)
1515

16-
const version = "v1.7.1"
16+
const version = "v1.7.2"
1717

1818
/*
1919
type AppRegistry struct {
@@ -118,7 +118,7 @@ func main() {
118118
}
119119

120120
if len(message) > 0 {
121-
log.Printf("Incoming SMS\n\tFrom: %s\n\tTo:%s\n\tPriority: %s\n\tRemoteAddress: %s\n\tSMS: %s", sm.SourceAddr, sm.DestinationAddr, strconv.Itoa(sm.PriorityFlag), ctx.RemoteAddr(), message)
121+
log.Printf("Incoming SMS\n\tSessionId: %s\n\tFrom: %s\n\tTo:%s\n\tPriority: %s\n\tRemoteAddress: %s\n\tSMS: %s", ctx.SessionID(), sm.SourceAddr, sm.DestinationAddr, strconv.Itoa(sm.PriorityFlag), ctx.RemoteAddr(), message)
122122
if len(cache.Mapping[sm.DestinationAddr]) > 0 {
123123
log.Printf("Send SMS to: %s", cache.Mapping[sm.DestinationAddr])
124124

0 commit comments

Comments
 (0)