wechaty / puppet-whatsapp

Wechaty Puppet for Whatsapp
https://npmjs.com/package/wechaty-puppet-whatsapp
Apache License 2.0
24 stars 17 forks source link

Use `error`, `warn`, `verbose`, or `silly` to replace `info` for our log level #329

Open huan opened 2 years ago

huan commented 2 years ago

I saw we are using lots of log.info(...) in the puppet code, which is not a necessary message to the end users.

We should:

  1. Use warn when there's something we need the user to notice
  2. Use error when there's any error
  3. Use verbose for tracking the methods (always be the first call inside a method)
  4. Use silly to output more debug information.

NEVER use info inside a puppet.

Thank you very much.