ente/web/apps
Manav Rathi e0fe018f34
Log on unhandled errors and promise rejections
Test code:

    useEffect(() => {
        setTimeout(() => testFunctionSync(), 5000);
    }, []);

    useEffect(() => {
        testFunction();
    }, []);

    const testFunctionSync = () => {
        console.log("sleeping not");
        // sleep(2000);
        console.log("woke up not");
        throw new Error("Handle me");
    };

    const testFunction = async () => {
        console.log("sleeping");
        sleep(2000);
        console.log("woke up");
        throw new Error("Handle me");
    };

Refs:
- https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event
- https://github.com/megahertz/electron-log/blob/master/src/renderer/lib/RendererErrorHandler.js
2024-04-10 13:05:00 +05:30
..
accounts log.error regex replacement 2024-04-09 11:32:34 +05:30
auth More manual tweaks 2024-04-09 11:58:44 +05:30
cast Remove deprecated loggers 2024-04-09 12:06:46 +05:30
payments Initial-scale=1 is still recommended 2024-04-05 09:36:18 +05:30
photos Log on unhandled errors and promise rejections 2024-04-10 13:05:00 +05:30
staff fetch 2024-04-04 16:19:46 +05:30