ui: add service worker to cache resources (#445)

This commit is contained in:
undefined authored and GitHub committed 2022-10-20 01:34:30 +08:00
1 parent aa5df5346a
commit fcc4eedd9f
10 files changed
+112 -54

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ class WorkerService extends Service {
sleep(300000),
]);
const spent = Date.now() - start;
if (spent > 500) logger.warn('Slow worker task (%d ms): %s', spent, doc);
if (spent > 500) logger.warn('Slow worker task (%d ms): %o', spent, doc);
} catch (e) {
logger.error('Worker task fail: ', e);
logger.error('%o', doc);