diff --git a/.changeset/slimy-parents-chew.md b/.changeset/slimy-parents-chew.md new file mode 100644 index 000000000..f716b33bb --- /dev/null +++ b/.changeset/slimy-parents-chew.md @@ -0,0 +1,5 @@ +--- +'@relayprotocol/relay-kit-ui': patch +--- + +Clearer eoa logs diff --git a/packages/ui/src/hooks/useEOADetection.ts b/packages/ui/src/hooks/useEOADetection.ts index d9f20e60b..7a7826332 100644 --- a/packages/ui/src/hooks/useEOADetection.ts +++ b/packages/ui/src/hooks/useEOADetection.ts @@ -165,13 +165,13 @@ const useEOADetection = ( const isTimeout = eoaError?.message === 'EOA_DETECTION_TIMEOUT' if (isTimeout) { - console.error('[EOA Detection]', { + console.error('[EOA Detection] timeout', { ...baseEventData, error_type: 'timeout', duration_ms: Math.round(duration) }) } else { - console.error('[EOA Detection]', { + console.error('[EOA Detection] error', { ...baseEventData, error_type: 'error', duration_ms: Math.round(duration), @@ -187,7 +187,7 @@ const useEOADetection = ( ) } } catch (error: any) { - console.error('[EOA Detection]', { + console.error('[EOA Detection] error', { ...baseEventData, error_type: 'error', error_message: error?.message || 'Unknown error',