From 8de23d067b531dcad8ee78340ae592317e7dfbf0 Mon Sep 17 00:00:00 2001 From: Sebastian Richner Date: Wed, 21 Feb 2024 09:39:22 +0100 Subject: [PATCH] Clean up --- src/electron/electron/main/index.ts | 1 - .../electron/main/services/ExperienceSamplingService.ts | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/electron/electron/main/index.ts b/src/electron/electron/main/index.ts index 69cf53b5..96928fb9 100644 --- a/src/electron/electron/main/index.ts +++ b/src/electron/electron/main/index.ts @@ -53,7 +53,6 @@ if (!app.requestSingleInstanceLock()) { // Optional, initialize the logger for any renderer process log.initialize(); const LOG = getLogger('Main', true); -LOG.info('Log from the main process'); app.whenReady().then(async () => { app.setAppUserModelId('ch.ifi.hasel.personal-analytics'); diff --git a/src/electron/electron/main/services/ExperienceSamplingService.ts b/src/electron/electron/main/services/ExperienceSamplingService.ts index c53f8846..327e6154 100644 --- a/src/electron/electron/main/services/ExperienceSamplingService.ts +++ b/src/electron/electron/main/services/ExperienceSamplingService.ts @@ -1,7 +1,13 @@ import { ExperienceSamplingResponseEntity } from '../entities/ExperienceSamplingResponseEntity'; +import { getLogger } from '../../shared/Logger'; + +const LOG = getLogger('ExperienceSamplingService'); export class ExperienceSamplingService { public async createExperienceSample(promptedAt: number, question: string, response: number) { + LOG.debug( + `createExperienceSample: promptedAt=${promptedAt}, question=${question}, response=${response}` + ); await ExperienceSamplingResponseEntity.save({ question, response,