From 48f378382bbdc516580b9506b941121a42ce9630 Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Fri, 13 Dec 2024 20:16:43 +0100 Subject: [PATCH] Update go-pfcp-networking --- go.mod | 2 +- go.sum | 2 ++ internal/smf/smf.go | 5 ++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 053191f..cb4ac52 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.7 require ( github.com/adrg/xdg v0.5.3 github.com/gin-gonic/gin v1.10.0 - github.com/nextmn/go-pfcp-networking v0.0.41-0.20241212103129-24fe84808302 + github.com/nextmn/go-pfcp-networking v0.0.41-0.20241213191334-2767b639c015 github.com/nextmn/json-api v0.0.14 github.com/nextmn/logrus-formatter v0.0.1 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index a6ac631..87d84b3 100644 --- a/go.sum +++ b/go.sum @@ -50,6 +50,8 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/nextmn/go-pfcp-networking v0.0.41-0.20241212103129-24fe84808302 h1:NlmeMncMd72Qf0jTnXLPxHnXVB07tGycVn7Nrvx4YXw= github.com/nextmn/go-pfcp-networking v0.0.41-0.20241212103129-24fe84808302/go.mod h1:KYoKLiltDmHL2YMU5mz2k/E1xMoz4TpmzTz6Nr5u5gA= +github.com/nextmn/go-pfcp-networking v0.0.41-0.20241213191334-2767b639c015 h1:0ICHKYmbOXM2QB5D34rL1kfkAyMdqJZ3E8zZPx02bCg= +github.com/nextmn/go-pfcp-networking v0.0.41-0.20241213191334-2767b639c015/go.mod h1:KYoKLiltDmHL2YMU5mz2k/E1xMoz4TpmzTz6Nr5u5gA= github.com/nextmn/json-api v0.0.14 h1:m4uHOVcXsxkXoxbrhqemLTRG4T86eYkejjirew1nDUU= github.com/nextmn/json-api v0.0.14/go.mod h1:CQXeNPj9MDGsEExtnqJFIGjLgZAKsmOoO2fy+mep7Ak= github.com/nextmn/logrus-formatter v0.0.1 h1:Bsf78jjiEESc+rV8xE6IyKj4frDPGMwXFNrLQzm6A1E= diff --git a/internal/smf/smf.go b/internal/smf/smf.go index 315b76f..f38bd4a 100644 --- a/internal/smf/smf.go +++ b/internal/smf/smf.go @@ -44,9 +44,8 @@ func (smf *Smf) Start(ctx context.Context) error { logrus.Info("Starting PFCP Server") go func() { defer close(smf.closed) - err := smf.srv.ListenAndServeContext(ctx) - if err != nil { - logrus.WithError(err).Trace("PFCP server stopped") + if err := smf.srv.ListenAndServeContext(ctx); err != nil { + logrus.WithError(err).Info("PFCP server stopped") } }() ctxTimeout, cancel := context.WithTimeout(ctx, 100*time.Millisecond)