rocicorp / repc

The canonical Replicache client, implemented in Rust.
Other
31 stars 7 forks source link

debug! should invoke console.debug #335

Open arv opened 3 years ago

arv commented 3 years ago

All our logging in rust ends up calling console.log. It would be much better if:

info! called console.info debug! called console.debug error! called console.error

aboodman commented 3 years ago

Really? I thought we were calling the right ones. Hm.

arv commented 3 years ago

I looked into this a bit more... A lot of my confusion comes from debug! is mapped to console.log.

https://docs.rs/crate/console_log/0.2.0