diff --git a/src/main.common.ts b/src/main.common.ts index f86f0458..56407f99 100644 --- a/src/main.common.ts +++ b/src/main.common.ts @@ -14,8 +14,8 @@ import { logger } from "./utils/logger"; const platform = process.env.VITE_PLATFORM; const pwa_enabled = process.env.VITE_PWA_ENABLED === "true"; -logger.error("Platform", { platform }); -logger.error("PWA enabled", { pwa_enabled }); +logger.log("Platform", { platform }); +logger.log("PWA enabled", { pwa_enabled }); // Global Error Handler function setupGlobalErrorHandler(app: VueApp) { diff --git a/src/services/platforms/ElectronPlatformService.ts b/src/services/platforms/ElectronPlatformService.ts index 6580f5fd..eef3a297 100644 --- a/src/services/platforms/ElectronPlatformService.ts +++ b/src/services/platforms/ElectronPlatformService.ts @@ -94,7 +94,7 @@ export class ElectronPlatformService implements PlatformService { // SQLite initialization configuration private static readonly SQLITE_CONFIG = { INITIALIZATION: { - TIMEOUT_MS: 10000, // 10 seconds for initial setup + TIMEOUT_MS: 1000, // with retries, stay under 5 seconds RETRY_ATTEMPTS: 3, RETRY_DELAY_MS: 1000, READY_CHECK_INTERVAL_MS: 100, // How often to check if SQLite is already ready