larsgw / citation.js

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.
https://citation.js.org/
MIT License
222 stars 30 forks source link

Silence logger in webpack builds #172

Closed isTravis closed 5 years ago

isTravis commented 5 years ago

Thanks so much for your work on this package - it's fantastic.

I recently updated from 0.4.0-6 to 0.4.0-10. My webpack dev build now prints out several statements on every rebuild. This adds a lot of noise to my console.

screen shot 2018-12-09 at 9 40 31 am

Is there anyway to silence the logger? Or am I perhaps setting up incorrectly such that these warnings are being output? I don't see anything in the docs suggesting how I might setup differently.

Any advice or suggestions would be welcome - thanks!

larsgw commented 5 years ago

Thanks so much for your work on this package - it's fantastic.

Thank you for using it and your feedback! :slightly_smiling_face:

Is there anyway to silence the logger?

Currently only in a hack-y way by setting the env var TEST_MOCHA=true.

Or am I perhaps setting up incorrectly such that these warnings are being output?

No, they're not warnings, they're mostly useless debug logs that should be removed.

isTravis commented 5 years ago

Got it - thanks for the very speedy reply! I think I'll simply wait for them to be removed (sitting at 0.4.0-6 in the meantime) as I'm concerned the env var may cause more confusion for the team than necessary.

Thanks again for the reply and the great work!