From 032d8818f6c66110c5bee5e4f166267622bde5cf Mon Sep 17 00:00:00 2001 From: Derek Worthen Date: Tue, 31 Oct 2023 08:15:54 -0700 Subject: [PATCH] Do not log logging activity - Previous versions logged logging activity creating an explosion of data to be written to files and degrading performance. --- .changeset/cold-oranges-help.md | 9 +++++++++ src/electron/main.ts | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .changeset/cold-oranges-help.md diff --git a/.changeset/cold-oranges-help.md b/.changeset/cold-oranges-help.md new file mode 100644 index 0000000..99107c4 --- /dev/null +++ b/.changeset/cold-oranges-help.md @@ -0,0 +1,9 @@ +--- +'gov4git-desktop-app': patch +--- + +Do not log logging activity + +- Previous versions logged logging activity + creating an explosion of data to be written to files + and degrading performance. diff --git a/src/electron/main.ts b/src/electron/main.ts index 8ef6e5f..2dc3ace 100644 --- a/src/electron/main.ts +++ b/src/electron/main.ts @@ -76,7 +76,9 @@ async function serviceHandler( try { const response = await services.invoke(invokeProps) logService.info(`Invoking ${invokeProps.service}:`, invokeProps) - logService.info('Response:', response) + if (invokeProps.service !== 'log') { + logService.info('Response:', response) + } return response } catch (ex) { try {