Unverified Commit f7707931 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

logger: skip logging full element (#85194)

parent 074262ba
......@@ -49,6 +49,10 @@ class ClientFileLogger {
return String(arg)
if (arg === null) return 'null'
if (arg === undefined) return 'undefined'
// Handle DOM nodes - only log the tag name to avoid React proxied elements
if (arg instanceof Element) {
return `<${arg.tagName.toLowerCase()}>`
}
return safeStringifyWithDepth(arg)
})
.join(' ')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment