Open jeffrey-peterson-vanna opened 4 months ago
@jeffrey-peterson-vanna this should be possible by overriding the fetch
method on the MedplumClient
to hook into outgoing requests:
const medplum = new MedplumClient({
fetch: async (input: RequestInfo, init?: RequestInit): Promise<Response> => {
const response = await fetch(input, init)
console.log(`${init?.method ?? 'GET'} ${input}`, response.status)
return response
},
})
Can I get assigned to this issue?
If yes, could you also guide me where I can find the MedplumClient
code.
Thanks
When I instantiate the SDK with
MedplumClient({ verbose: true })
, I get chatty logs that include the bearer token. If I doverbose: false
I get no logs. Additional intermediate log levels would be very useful, especially in contexts where logs are aggregated and persisted. A log level that simply output the following would be great: