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

Debug Mode For a Widget #104

Open
bogdans83 opened this issue Jan 9, 2014 · 1 comment
Open

Debug Mode For a Widget #104

bogdans83 opened this issue Jan 9, 2014 · 1 comment

Comments

@bogdans83
Copy link
Contributor

@aismail

If we inherit everything from Module and find a way to derive name in JS (full path to current file), it will be easy, just like in Python. It's pretty easy to migrate what we have now because we don't have THAT many logging statements.

Be careful that logging should be the first component of the system initialized and it shouldn't have any other dependencies. I'm not sure however if it's worth doing right now :(

@skidding

It'd be a nice to have, but I don't think there's an easy way to do it. You'd have to trace back where logger.error is called from. And I still don't think we even have consistent logging in JS. Thrown exceptions could be caught separately though, with some conditional logic in module wrapping https://github.com/uberVU/thehole/blob/master/app/core/module.coffee#L53-L74
@bogdans83
Copy link
Contributor Author

CC: @marianitadn @topliceanu

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

1 participant