diff options
| author | Aleksey Kosov <rusyak777@list.ru> | 2025-06-20 16:23:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 06:23:53 -0700 |
| commit | 90c128e7a66389477943bbca080ce68a70196310 (patch) | |
| tree | e14ba16a2775b41fb2fc653188c16f462da23a46 /weed/operation | |
| parent | a72c442945af575cc2a94d1aa9867a4710ded02e (diff) | |
| download | seaweedfs-90c128e7a66389477943bbca080ce68a70196310.tar.xz seaweedfs-90c128e7a66389477943bbca080ce68a70196310.zip | |
Context-based logging with request ID (#6899)
Diffstat (limited to 'weed/operation')
| -rw-r--r-- | weed/operation/upload_content.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go index 6d910674b..ac549ef6e 100644 --- a/weed/operation/upload_content.go +++ b/weed/operation/upload_content.go @@ -5,7 +5,6 @@ import ( "context" "encoding/json" "fmt" - "github.com/valyala/bytebufferpool" "io" "mime" "mime/multipart" @@ -16,6 +15,9 @@ import ( "sync" "time" + "github.com/seaweedfs/seaweedfs/weed/util/request_id" + "github.com/valyala/bytebufferpool" + "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" "github.com/seaweedfs/seaweedfs/weed/security" @@ -359,7 +361,7 @@ func (uploader *Uploader) upload_content(ctx context.Context, fillBufferFunction req.Header.Set("Authorization", "BEARER "+string(option.Jwt)) } - util.ReqWithRequestId(req, ctx) + request_id.InjectToRequest(ctx, req) // print("+") resp, post_err := uploader.httpClient.Do(req) |
