mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
avoid log loss when token expired fix #10738
This commit is contained in:
@@ -161,7 +161,7 @@ func addLog(model IObject, action string, iNotes interface{}, userCred mcclient.
|
||||
logentry.Add(jsonutils.NewString(notes), "notes")
|
||||
|
||||
logclientWorkerMan.Run(func() {
|
||||
s := DefaultSessionGenerator(context.Background(), userCred, "", "")
|
||||
s := DefaultSessionGenerator(context.Background(), auth.AdminCredential(), "", "")
|
||||
_, err := api.Create(s, logentry)
|
||||
if err != nil {
|
||||
log.Errorf("create action log %s failed %s", logentry, err)
|
||||
|
||||
Reference in New Issue
Block a user