-
Notifications
You must be signed in to change notification settings - Fork 54
[Technical Debt] top level console override (replacement for 2532) #2537
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely much cleaner.
Is there a way to override the behaviour if we ever want to, though?
Let's say there are cases where we still might want to log something. Shouldn't we still be able to?
... that's a good point, let me do sth |
also I've added console.error as well to this. do we want this ux? |
You haven't pushed yet, have you? Assuming not, I would suggest and optional console.log('shit, this should be visible, ALWAYS!!', force=true)
// OR
console.force.log('same thing...') The second option would be a proxy/wrapper that invokes regular logging fns. WDYT? |
i like the second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice!
Potential replacement of #2532
Part of #1887
Testing
check PRaul for logs