Merge pull request #3003 from Fish-pro/fix/klogformat

Fix log output errors
This commit is contained in:
karmada-bot 2022-12-29 18:06:50 +08:00 committed by GitHub
commit 434b7b6578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -414,7 +414,7 @@ func cleanupWorkWithServiceExportDelete(c client.Client, serviceExportKey keys.F
util.ServiceNameLabel: serviceExportKey.Name,
}),
}); err != nil {
klog.Error("Failed to list workList reported by ServiceExport(%s) in namespace(%s), Error: %v",
klog.Errorf("Failed to list workList reported by ServiceExport(%s) in executionSpace(%s), Error: %v",
serviceExportKey.NamespaceKey(), executionSpace, err)
return err
}
@ -442,7 +442,7 @@ func cleanupWorkWithEndpointSliceDelete(c client.Client, endpointSliceKey keys.F
return nil
}
klog.Error("Failed to get work(%s), Error: %v", workNamespaceKey, executionSpace, err)
klog.Errorf("Failed to get work(%s) in executionSpace(%s), Error: %v", workNamespaceKey.String(), executionSpace, err)
return err
}