Skip to content

chore: Print element instance in logWarning function

Simon Knox requested to merge psi-log-element into main

What does this MR do?

Update logWarning function and instances to include the component element. This helps find where it's coming from in the code, as I foudn the stack trace hard to follow.

Now you can right click on the button, "View in elements panel" and easily find the cause.

before after
Screenshot_2023-04-04_at_4.39.45_pm Screenshot_2023-04-04_at_4.39.55_pm

Can test by editing a story to remove title from a button or modal

Edited by Simon Knox

Merge request reports

Loading