From 274cbfa482a294243fd82df1564d151ed52748b4 Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Sat, 23 Jan 2021 18:59:01 -0600 Subject: [PATCH] Fix --- learn/store/worker/store.worker.endpoint.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/learn/store/worker/store.worker.endpoint.ts b/learn/store/worker/store.worker.endpoint.ts index 7e441b5..ed24df5 100644 --- a/learn/store/worker/store.worker.endpoint.ts +++ b/learn/store/worker/store.worker.endpoint.ts @@ -1,5 +1,5 @@ import _ from 'lodash'; -import log from 'electron-log'; //tslint:disable-line:match-default-export-name +// import log from 'electron-log'; //tslint:disable-line:match-default-export-name import { IndexedStore } from '../indexed'; import { IndexedRequest, ProfileStoreCommand } from './types'; @@ -18,12 +18,11 @@ const reply = (req: IndexedRequest, result?: any, err?: string | Error): void => }; if (err) { - console.error(err); - console.error('store.worker.endpoint.error', { err }); + console.error('store.worker.endpoint.error', err); res.msg = _.isString(err) ? err : err.message; } - log.debug('store.worker.endpoint.reply', { req, res }); + // log.debug('store.worker.endpoint.reply', { req, res }); postMessage(res); }; @@ -46,7 +45,7 @@ const generateMessageProcessor = () => { }; return async(e: Event) => { - log.silly('store.worker.endpoint.msg', { e }); + // log.silly('store.worker.endpoint.msg', { e }); const req = (e as any).data as IndexedRequest;