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

Suggestion: Flags to specify log level on 'develop' #72

Open
Psykoral opened this issue Oct 30, 2017 · 1 comment
Open

Suggestion: Flags to specify log level on 'develop' #72

Psykoral opened this issue Oct 30, 2017 · 1 comment

Comments

@Psykoral
Copy link

Psykoral commented Oct 30, 2017

Issue: Warnings are spammed in the build terminal

WARN: "app" is not in the current scope, so it is being read from the parent scope.
This will not happen automatically in an upcoming release. See https://canjs.com/doc/can-stache.scopeAndContext.html#PreventingScopeWalking.

While handy for something to address in due time, it also spams so many of them that I can't see if any actual errors are occurring. Can there be a flag in the run command where the developer can specify what level of logging they desire?

Something like: done-serve --develop --log-level error or done-serve --develop --log-level warn

@matthewp
Copy link
Contributor

Great idea! We'd first need the option in done-ssr. I think https://github.com/canjs/can-log is the package that matters here, so we could probably have done-ssr set this package's log-level, but totally seems doable to me.

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

No branches or pull requests

2 participants