Skip to content

Commit

Permalink
chore: add interval log
Browse files Browse the repository at this point in the history
  • Loading branch information
kahirokunn committed Jul 4, 2024
1 parent 197c24f commit 4b91d7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kubekit-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubekit/client",
"version": "0.2.32",
"version": "0.2.33",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "kahirokunn",
Expand Down
7 changes: 7 additions & 0 deletions packages/kubekit-client/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ export async function apiClient<Response>(
const { syncPeriod: __ = 0, ...listExtraOptions } = { ...extraOptions };

const intervalId = setInterval(async () => {
verboseLog({
message: 'Refresh',
body: { ctx },
type: 'debug',
path: url.pathname,
level: 8,
});
const result = (await apiClient<K8sListResponse<K8sObj>>(
{
...arguments_,
Expand Down

0 comments on commit 4b91d7e

Please sign in to comment.