-
Notifications
You must be signed in to change notification settings - Fork 15
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
Logging level is not configurable #41
Comments
Does this approach not work? qless-js/bin/qless-js-worker.js Line 32 in f45df9d
|
Thanks for pointing that out. FWIW, the context of this is running a qless worker within an integration test. I think my source of confusion is that I'd expect to be able to pass the logging level to the worker, like:
and that So, it is a bit of a surprise, but running:
does the needful. I'm not sure if it worth it to keep this issue open. On one hand, if folk are using qless inside integration tests and they want qless to be loud (in our case, travis builds fail infrequently with a However, if the main use case is to run a worker through one of the Thoughts? |
Yeah, I was wondering how you were invoking it, but that seems like a legitimate use case. I'd be open to a PR for this, but I don't see it as the most pressing thing in the world. I think the reason it's not part of the worker creation config is because it's not the case that each worker has a logger - it's global to the library. |
Yeah, that's reasonable. What if I made a PR against the docs that shows how to create a worker, and configure the log level of qless, that could be used in, for example, testing frameworks? |
Sounds great! Sorry you had to dig around and ultimately open an issue to get it sorted :-/ |
I am unable to configure the level at which I want QlessClient to log messages.
Given the following configuration of a worker:
I'd expect to see qless' internal logger to print all
debug
statements.However, it appears that the logger is hardcoded to only print
warn
or higherI'm happy to make a PR to address this.
The text was updated successfully, but these errors were encountered: