summaryrefslogtreecommitdiff
path: root/internal/api/client/streaming/stream.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/streaming/stream.go')
-rw-r--r--internal/api/client/streaming/stream.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/internal/api/client/streaming/stream.go b/internal/api/client/streaming/stream.go
index 2c18e4e41..7e2922acf 100644
--- a/internal/api/client/streaming/stream.go
+++ b/internal/api/client/streaming/stream.go
@@ -5,9 +5,10 @@ import (
"net/http"
"time"
- "github.com/sirupsen/logrus"
+ "codeberg.org/gruf/go-kv"
"github.com/superseriousbusiness/gotosocial/internal/api"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
+ "github.com/superseriousbusiness/gotosocial/internal/log"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
@@ -144,12 +145,12 @@ func (m *Module) StreamGETHandler(c *gin.Context) {
return
}
- l := logrus.WithFields(logrus.Fields{
- "account": account.Username,
- "path": BasePath,
- "streamID": stream.ID,
- "streamType": streamType,
- })
+ l := log.WithFields(kv.Fields{
+ {"account", account.Username},
+ {"path", BasePath},
+ {"streamID", stream.ID},
+ {"streamType", streamType},
+ }...)
wsConn, err := wsUpgrader.Upgrade(c.Writer, c.Request, nil)
if err != nil {