add console logs in front of all GetSettingsConfig calls in emain

This commit is contained in:
sawka 2024-08-07 14:10:14 -07:00
parent 4e88a27d9e
commit 3c8bac6bf9
2 changed files with 3 additions and 0 deletions

View File

@ -208,6 +208,7 @@ function runWaveSrv(): Promise<boolean> {
} }
async function handleWSEvent(evtMsg: WSEventType) { async function handleWSEvent(evtMsg: WSEventType) {
console.log("handleWSEvent", evtMsg?.eventtype);
if (evtMsg.eventtype == "electron:newwindow") { if (evtMsg.eventtype == "electron:newwindow") {
const windowId: string = evtMsg.data; const windowId: string = evtMsg.data;
const windowData: WaveWindow = (await services.ObjectService.GetObject("window:" + windowId)) as WaveWindow; const windowData: WaveWindow = (await services.ObjectService.GetObject("window:" + windowId)) as WaveWindow;

View File

@ -91,6 +91,7 @@ export class Updater {
* @param userInput Whether the user is requesting this. If so, an alert will report the result of the check. * @param userInput Whether the user is requesting this. If so, an alert will report the result of the check.
*/ */
async checkForUpdates(userInput: boolean) { async checkForUpdates(userInput: boolean) {
console.log("checkForUpdates");
const autoUpdateOpts = (await services.FileService.GetSettingsConfig()).autoupdate; const autoUpdateOpts = (await services.FileService.GetSettingsConfig()).autoupdate;
// If there's an active update check interval, check that the user still has auto update checks enabled. If not, remove the interval. // If there's an active update check interval, check that the user still has auto update checks enabled. If not, remove the interval.
@ -185,6 +186,7 @@ export async function configureAutoUpdater() {
return; return;
} }
console.log("configureAutoUpdater");
autoUpdateLock = true; autoUpdateLock = true;
const autoUpdateOpts = (await services.FileService.GetSettingsConfig()).autoupdate; const autoUpdateOpts = (await services.FileService.GetSettingsConfig()).autoupdate;