Skip to content

Commit 752e8db

Browse files
tidy(ui): demote logging in nav api to trace
1 parent 85fc861 commit 752e8db

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

invokeai/frontend/web/src/features/ui/layouts/navigation-api.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class NavigationApi {
9999
* Sets the flag indicating that the navigation is loading and schedules a debounced hide of the loading screen.
100100
*/
101101
_showFakeLoadingScreen = () => {
102-
log.debug('Showing fake loading screen for tab switch');
102+
log.trace('Showing fake loading screen for tab switch');
103103
this._$isLoading.set(true);
104104
this._hideLoadingScreenDebounced();
105105
};
@@ -108,7 +108,7 @@ export class NavigationApi {
108108
* Debounced function to hide the loading screen after a delay.
109109
*/
110110
_hideLoadingScreenDebounced = debounce(() => {
111-
log.debug('Hiding fake loading screen for tab switch');
111+
log.trace('Hiding fake loading screen for tab switch');
112112
this._$isLoading.set(false);
113113
}, SWITCH_TABS_FAKE_DELAY_MS);
114114

@@ -127,11 +127,11 @@ export class NavigationApi {
127127
}
128128

129129
if (tab === this._app.activeTab.get()) {
130-
log.debug(`Already on tab: ${tab}`);
130+
log.trace(`Already on tab: ${tab}`);
131131
return true;
132132
}
133133

134-
log.debug(`Switching to tab: ${tab}`);
134+
log.trace(`Switching to tab: ${tab}`);
135135
this._showFakeLoadingScreen();
136136
this._app.activeTab.set(tab);
137137
return true;
@@ -160,11 +160,11 @@ export class NavigationApi {
160160
this.waiters.delete(key);
161161
}
162162

163-
log.debug(`Registered panel ${key}`);
163+
log.trace(`Registered panel ${key}`);
164164

165165
return () => {
166166
this.panels.delete(key);
167-
log.debug(`Unregistered panel ${key}`);
167+
log.trace(`Unregistered panel ${key}`);
168168
};
169169
};
170170

@@ -192,7 +192,7 @@ export class NavigationApi {
192192
try {
193193
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
194194
api.fromJSON(stored as any);
195-
log.debug({ stored: parseify(stored) }, `Restored view ${key} from storage`);
195+
log.trace({ stored: parseify(stored) }, `Restored view ${key} from storage`);
196196
} catch (error) {
197197
log.error({ error: parseify(error) }, `Failed to restore view ${key} from storage`);
198198
this._app.storage.delete(key);
@@ -201,7 +201,7 @@ export class NavigationApi {
201201
}
202202
} else {
203203
initialize();
204-
log.debug(`Initialized ${key} from scratch`);
204+
log.trace(`Initialized ${key} from scratch`);
205205
this._app.storage.set(key, api.toJSON());
206206
}
207207

@@ -215,7 +215,7 @@ export class NavigationApi {
215215
}, 300)
216216
);
217217

218-
log.debug(`Registered view ${key}`);
218+
log.trace(`Registered view ${key}`);
219219
};
220220

221221
/**
@@ -337,7 +337,7 @@ export class NavigationApi {
337337

338338
// Dockview uses the term "active", but we use "focused" for consistency.
339339
panel.api.setActive();
340-
log.debug(`Focused panel ${key}`);
340+
log.trace(`Focused panel ${key}`);
341341

342342
return true;
343343
} catch (error) {
@@ -593,7 +593,7 @@ export class NavigationApi {
593593
this.waiters.delete(key);
594594
}
595595

596-
log.debug(`Unregistered all panels for tab ${tab}`);
596+
log.trace(`Unregistered all panels for tab ${tab}`);
597597
};
598598
}
599599

0 commit comments

Comments
 (0)