mirror of
1
Fork 0
gotosocial/internal/middleware
Daenney d39280ec33
[bug] Pass context in logging middleware (#1514)
This updates the middleware log.WithField calls that create new loggers
to include the context the first time around. Without it the requestID
does not get logged.

Fixup from #1476
2023-02-17 12:37:57 +01:00
..
cachecontrol.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
cors.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
extraheaders.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
gzip.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
logger.go [bug] Pass context in logging middleware (#1514) 2023-02-17 12:37:57 +01:00
ratelimit.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
requestid.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
session.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
session_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
signaturecheck.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
throttling.go [performance] remove throttling timers (#1466) 2023-02-10 20:16:01 +00:00
tokencheck.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
useragent.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00