Skip to content

Commit 8048d4e

Browse files
authored
fix(odd): stop polluting console log with "▶ Object" (#20111)
# Overview The JavaScript console for the ODD was filling up with log messages of: ``` [app//opt/opentrons-app/resources/app.asar/ui/assets/index-XXX.js] debug: Received action from main via IPC -------------------------------------------------- ▶ Object ``` which is not very helpful. This PR is a small tweak to inline the action into the log message so that you can see it without clicking on `▶ Object`, decluttering the console. #### Before: <img width="1176" height="586" alt="image" src="https://github.com/user-attachments/assets/fb503f36-337a-4031-a026-2067db8df67f"/> #### After: <img width="1166" height="432" alt="image" src="https://github.com/user-attachments/assets/ec79376f-c692-4b1f-a9b4-b7bfcb7c7fab"/> ## Test Plan and Hands on Testing Built the ODD and deployed it to AuthorshipPVT for hands-on testing. ## Risk assessment Low.
1 parent 6c72679 commit 8048d4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/redux/shell/epic.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ const receiveActionFromShellEpic: Epic = () =>
4242
(_: unknown, incoming: Action) => incoming
4343
).pipe<Action>(
4444
tap(incoming => {
45-
log.debug('Received action from main via IPC', {
46-
actionType: incoming.type,
47-
})
45+
log.debug(`Received action from main via IPC: ${incoming.type}`)
4846
})
4947
)
5048

0 commit comments

Comments
 (0)