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,