braze-inc / braze-web-sdk

Public repo for the Braze Web SDK
https://www.braze.com
Other
73 stars 26 forks source link

Broken logger for IndexedDBAdapter at service-worker.js #35

Closed ash-developer closed 6 years ago

ash-developer commented 6 years ago

Logger without debug function passed into IndexedDBAdapter on create, but after that it used at code self.__logger.debug Did I miss something?

froodian commented 6 years ago

Hi @ash-developer

My goodness, you're absolutely correct, this is a regression that was introduced recently, we'll have a fix out ASAP. Thank you very much for reporting this. In the mean time as I'm sure you've surmised you could do a find/replace of __logger.debug with __logger.info to work around this.

ash-developer commented 6 years ago

Hello @froodian Thank you

froodian commented 6 years ago

Hello again @ash-developer - we've now released 2.0.6 of the SDK - you should see this as fixed in https://js.appboycdn.com/web-sdk/2.0/service-worker.js - thanks again for reporting.

ash-developer commented 6 years ago

great, thank you again