Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Debug Log Messages in Production #194

Open
boussaidev opened this issue Aug 15, 2024 · 1 comment
Open

Hide Debug Log Messages in Production #194

boussaidev opened this issue Aug 15, 2024 · 1 comment

Comments

@boussaidev
Copy link

boussaidev commented Aug 15, 2024

Hello, I'm seeing this log message when including the library. I want to hide it in production. Please add an option to enable/disable debugging or remove this log message.


🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈
🌟 Thank you for using ml5.js v1.0.1 🌟

❗❗❗
This is an experimental and unstable version 
of ml5.js. Please feel free to report any bugs
via the methods listed below.
❗❗❗

Please read our community statement to ensure 
that the use of this software reflects the values 
of the ml5.js community:
↳ https://ml5js.org/about

Reporting: 
↳ https://github.com/ml5js/ml5-next-gen/issues
↳ Email: [email protected] 
🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈
@boussaidev boussaidev changed the title Disable log message on production Hide Debug Log Messages in Production Aug 15, 2024
@ziyuan-linn
Copy link
Member

Hi, @boussaidev, thank you for submitting this issue!

Currently, this message is logged almost immediately after the ml5 script gets loaded. I don't think there is a simple way to add a hide option since it has to be set/called before the message is logged.

If we decide to implement the hide option, we could delay the console log until the first ml5 model gets initialized, so there is a chance to call the hide option.

@shiffman Have this been brought up in discussions before? How do we feel about adding an option to hide the community statement console log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants