forked from jsnbuchanan/crowd-funder-for-time-pwa
Clean up console logging and fix platform detection issues
- Reduce migration/platform logging verbosity in development mode (~80-90% less noise) - Fix AbsurdSQL platform check to support 'development' alongside 'web' - Add missing WebPlatformService methods (isWorker, initSharedArrayBuffer) - Fix Electron API endpoint resolution to prevent JSON parsing errors - Prevent circular database logging that caused [DB-PREVENTED-INFO] spam Console now shows only essential information while preserving all errors/warnings
This commit is contained in:
@@ -43,10 +43,13 @@ export const logger = {
|
||||
}
|
||||
|
||||
// Only log to database for important messages (not routine operations)
|
||||
// Skip database logging for migration messages to avoid circular dependency
|
||||
if (
|
||||
!message.includes("[CapacitorPlatformService]") &&
|
||||
!message.includes("[CapacitorMigration]") &&
|
||||
!message.includes("[DB-Integrity]")
|
||||
!message.includes("[DB-Integrity]") &&
|
||||
!message.includes("[Migration]") &&
|
||||
!message.includes("[IndexedDBMigrationService]")
|
||||
) {
|
||||
const argsString = args.length > 0 ? " - " + safeStringify(args) : "";
|
||||
logToDb(message + argsString);
|
||||
|
||||
Reference in New Issue
Block a user