Skip to content

Commit

Permalink
Prevent browser console log spam
Browse files Browse the repository at this point in the history
Lower log level of terminal output to debug
  • Loading branch information
webfiltered committed Dec 23, 2024
1 parent bb82891 commit 54a9824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ const electronAPI = {
*/
onProgressUpdate: (callback: (update: { status: ProgressStatus }) => void) => {
ipcRenderer.on(IPC_CHANNELS.LOADING_PROGRESS, (_event, value) => {
console.info(`Received ${IPC_CHANNELS.LOADING_PROGRESS} event`, value);
console.debug(`Received ${IPC_CHANNELS.LOADING_PROGRESS} event`, value);
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
callback(value);
});
},
onLogMessage: (callback: (message: string) => void) => {
ipcRenderer.on(IPC_CHANNELS.LOG_MESSAGE, (_event, value) => {
console.info(`Received ${IPC_CHANNELS.LOG_MESSAGE} event`, value);
console.debug(`Received ${IPC_CHANNELS.LOG_MESSAGE} event`, value);
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
callback(value);
});
Expand Down

0 comments on commit 54a9824

Please sign in to comment.