mirror of
https://github.com/mautrix/signal.git
synced 2025-03-14 14:15:36 +00:00
signalmeow: add request id to all incoming request logs
This commit is contained in:
parent
f09966c148
commit
562ed05593
1 changed files with 2 additions and 1 deletions
|
@ -280,6 +280,7 @@ func (cli *Client) incomingRequestHandler(ctx context.Context, req *signalpb.Web
|
|||
Str("handler", "incoming request handler").
|
||||
Str("verb", *req.Verb).
|
||||
Str("path", *req.Path).
|
||||
Uint64("request_id", *req.Id).
|
||||
Logger()
|
||||
ctx = log.WithContext(ctx)
|
||||
if *req.Verb == http.MethodPut && *req.Path == "/api/v1/message" {
|
||||
|
@ -296,7 +297,7 @@ func (cli *Client) incomingRequestHandler(ctx context.Context, req *signalpb.Web
|
|||
}
|
||||
|
||||
func (cli *Client) incomingAPIMessageHandler(ctx context.Context, req *signalpb.WebSocketRequestMessage) (*web.SimpleResponse, error) {
|
||||
log := *zerolog.Ctx(ctx)
|
||||
log := zerolog.Ctx(ctx)
|
||||
envelope := &signalpb.Envelope{}
|
||||
err := proto.Unmarshal(req.Body, envelope)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue