Skip to content

Commit e2a4b65

Browse files
authored
Clearer eoa logs (#893)
* clearer logs * feat: changeset
1 parent 181d97f commit e2a4b65

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/slimy-parents-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@relayprotocol/relay-kit-ui': patch
3+
---
4+
5+
Clearer eoa logs

packages/ui/src/hooks/useEOADetection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ const useEOADetection = (
165165
const isTimeout = eoaError?.message === 'EOA_DETECTION_TIMEOUT'
166166

167167
if (isTimeout) {
168-
console.error('[EOA Detection]', {
168+
console.error('[EOA Detection] timeout', {
169169
...baseEventData,
170170
error_type: 'timeout',
171171
duration_ms: Math.round(duration)
172172
})
173173
} else {
174-
console.error('[EOA Detection]', {
174+
console.error('[EOA Detection] error', {
175175
...baseEventData,
176176
error_type: 'error',
177177
duration_ms: Math.round(duration),
@@ -187,7 +187,7 @@ const useEOADetection = (
187187
)
188188
}
189189
} catch (error: any) {
190-
console.error('[EOA Detection]', {
190+
console.error('[EOA Detection] error', {
191191
...baseEventData,
192192
error_type: 'error',
193193
error_message: error?.message || 'Unknown error',

0 commit comments

Comments
 (0)