Skip to content

Commit

Permalink
Merge pull request #30 from gov4git/logging
Browse files Browse the repository at this point in the history
Do not log logging activity
  • Loading branch information
dworthen committed Oct 31, 2023
2 parents 987d03b + 032d881 commit b7bc371
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 b7bc371

Please sign in to comment.