mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update debug log
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
3c1c635f60
commit
74f1008de0
@ -147,11 +147,11 @@ export class KubeWatchApi {
|
|||||||
? reaction(
|
? reaction(
|
||||||
// Note: must slice because reaction won't fire if it isn't there
|
// Note: must slice because reaction won't fire if it isn't there
|
||||||
() => [KubeWatchApi.context.contextNamespaces.slice(), KubeWatchApi.context.hasSelectedAll] as const,
|
() => [KubeWatchApi.context.contextNamespaces.slice(), KubeWatchApi.context.hasSelectedAll] as const,
|
||||||
([namespaces, curSelectedAll], [, prevSelectedAll]) => {
|
([namespaces, curSelectedAll], [prevNamespaces, prevSelectedAll]) => {
|
||||||
if (curSelectedAll && prevSelectedAll) {
|
if (curSelectedAll && prevSelectedAll) {
|
||||||
console.log(`[KUBE-WATCH-API]: Not changing watch for ${store.api.apiBase} because a new namespace was created but all namespaces are selected`);
|
const action = namespaces.length > prevNamespaces.length ? "created" : "deleted";
|
||||||
|
|
||||||
return;
|
return console.debug(`[KUBE-WATCH-API]: Not changing watch for ${store.api.apiBase} because a new namespace was ${action} but all namespaces are selected`);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`[KUBE-WATCH-API]: changing watch ${store.api.apiBase}`, namespaces);
|
console.log(`[KUBE-WATCH-API]: changing watch ${store.api.apiBase}`, namespaces);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user