krakenjs / post-robot

Cross domain post-messaging on the client side using a simple listener/client pattern.
Apache License 2.0
746 stars 91 forks source link

Disable logs in v10 #71

Closed dackmin closed 5 years ago

dackmin commented 5 years ago

Is there any particular reason CONFIG is not available anymore inside the postRobot object?

postRobot.CONFIG.LOG_LEVEL = 'disabled';

--> Is now making our tests fail

We used it to disable logs completely on production environments because there were some remaining error logs that we were already catching and processing our own way.

Is there a way we can achieve the same behavior in v10?

bluepnume commented 5 years ago

Logs should be disabled by default in the v10 build now. Do you see any coming through?

dackmin commented 5 years ago

Yep they're gone in v10, thanks 👍 It wasn't really clear in the commits. Will it be possible to add a changelog listing the major changes starting with v10? To avoid opening useless issues like this one 😄

harshes53 commented 5 years ago

@bluepnume Is there a way to turn on debug mode when in development?