Skip to content

Commit

Permalink
Do not log logging activity
Browse files Browse the repository at this point in the history
- Previous versions logged logging activity
creating an explosion of data to be written to files
and degrading performance.
  • Loading branch information
dworthen committed Oct 31, 2023
1 parent 987d03b commit 032d881
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .changeset/cold-oranges-help.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 3 additions & 1 deletion src/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 032d881

Please sign in to comment.