Skip to content

Commit 0282836

Browse files
committed
Change loging incoming SMS
1 parent 88805d7 commit 0282836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func main() {
6969
</body>
7070
`
7171

72-
log.Println(fmt.Sprintf("Incoming SMS: %s\n", msg))
72+
log.Println(fmt.Sprintf("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(), UCS2Decode(sm.ShortMessage)))
7373

7474
SendMail(cfg.SMTP.Host, cfg.SMTP.Port, cfg.SMTP.User, cfg.SMTP.Pass, cfg.SMTP.From, cfg.SMTP.To, "SMPP gateway", msg, "")
7575

0 commit comments

Comments
 (0)