Skip to content

Commit

Permalink
Merge b964391 into d7ca5d8
Browse files Browse the repository at this point in the history
  • Loading branch information
brnt committed Mar 31, 2021
2 parents d7ca5d8 + b964391 commit a331d39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions transport/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (tpl *layer) Send(msg sip.Message) error {
}

logger := log.AddFieldsFrom(tpl.Log(), protocol, msg)
logger.Infof("sending SIP request:\n%s", msg)
logger.Debugf("sending SIP request:\n%s", msg)

if err = protocol.Send(target, msg); err != nil {
return fmt.Errorf("send SIP message through %s protocol to %s: %w", protocol.Network(), target.Addr(), err)
Expand All @@ -313,7 +313,7 @@ func (tpl *layer) Send(msg sip.Message) error {
}

logger := log.AddFieldsFrom(tpl.Log(), protocol, msg)
logger.Infof("sending SIP response:\n%s", msg)
logger.Debugf("sending SIP response:\n%s", msg)

if err = protocol.Send(target, msg); err != nil {
return fmt.Errorf("send SIP message through %s protocol to %s: %w", protocol.Network(), target.Addr(), err)
Expand Down Expand Up @@ -370,7 +370,7 @@ func (tpl *layer) dispose() {
func (tpl *layer) handleMessage(msg sip.Message) {
logger := tpl.Log().WithFields(msg.Fields())

logger.Infof("received SIP message:\n%s", msg)
logger.Debugf("received SIP message:\n%s", msg)
logger.Trace("passing up SIP message...")

// pass up message
Expand Down

0 comments on commit a331d39

Please sign in to comment.