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

Wrong assumptions about logger is causing runtime crashes #115

Open
osa1 opened this issue Jul 8, 2015 · 0 comments
Open

Wrong assumptions about logger is causing runtime crashes #115

osa1 opened this issue Jul 8, 2015 · 0 comments

Comments

@osa1
Copy link
Member

osa1 commented Jul 8, 2015

If we use -fdebug but don't set DEBUG env variable(for debug level) or set it to 0, maxLvl is set to 0 in Control.LVish.SchedIdempotentInternal.new, and it doesn't create a logger since no logging should be done with that level. However, other parts of the library assumes that if -fdebug is used, that we have a logger in use and they do non-exhaustive pattern matching on the logger. (example: Internal.Control.LVish.SchedIdempotent.logStrLn)

This is causing runtime crashes and should be fixed.

@osa1 osa1 self-assigned this Jul 8, 2015
@osa1 osa1 removed their assignment Sep 19, 2024
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