Skip to content

Commit

Permalink
even moooore logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin committed Oct 27, 2023
1 parent 9346384 commit e58ea53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app-shell/src/usb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ async function usbListener(
config: AxiosRequestConfig
): Promise<unknown> {
try {
console.log('XXX IN USB LISTENER')
// TODO(bh, 2023-05-03): remove mutation
let { data } = config
let formHeaders = {}
Expand All @@ -90,8 +91,10 @@ async function usbListener(
formHeaders = formData.getHeaders()
data = formData
}

console.log('XXX GETTING USB HTTP AGENT')
const usbHttpAgent = getSerialPortHttpAgent()
console.log(usbHttpAgent)
console.log('XXX ABOUT TO SEND REQUEST OVER USB')

const response = await axios.request({
httpAgent: usbHttpAgent,
Expand Down
1 change: 1 addition & 0 deletions app/src/redux/shell/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function appShellRequestor<Data>(
? { formDataProxy: { protocolKey: data.get('key') } }
: data
const configProxy = { ...config, data: formDataProxy }
console.log('calling ipc renderer over usb')

return remote.ipcRenderer.invoke('usb:request', configProxy)
}

0 comments on commit e58ea53

Please sign in to comment.