mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #16129 from swordqiu/hotfix/qj-logclient-add-service-name-context
fix: logclient request add service name context
This commit is contained in:
@@ -241,7 +241,9 @@ type logTask struct {
|
||||
}
|
||||
|
||||
func (t *logTask) Run() {
|
||||
s := DefaultSessionGenerator(context.Background(), t.userCred, "")
|
||||
ctx := context.Background()
|
||||
ctx = context.WithValue(ctx, appctx.APP_CONTEXT_KEY_APPNAME, consts.GetServiceType())
|
||||
s := DefaultSessionGenerator(ctx, t.userCred, "")
|
||||
_, err := t.api.Create(s, t.logentry)
|
||||
if err != nil {
|
||||
log.Errorf("create action log %s failed %s", t.logentry, err)
|
||||
|
||||
Reference in New Issue
Block a user