-
Notifications
You must be signed in to change notification settings - Fork 116
Increase debug-level logging in Fenzo's scheduler #59
Comments
@dgrnbrg Will do. For immediate help, you could try to debug using this call: |
You can now use the optional builder method, withDebugEnabled(), to enable additional debugging info. Note that turning this on can print numerous log messages per invocation of scheduleOnce() method, as well as have a performance overhead. |
What log namespaces and levels does it use? Also, why not use the slf4j compatible log levels for enabling/disabling debugging info? |
There would be a performance hit by creating the log strings and invoking logger.debug() even if debug is turned off. Therefore, we pick this approach of defining the flag to turn on additional debug info when creating the task scheduler. |
Depending on the amount of logging, another approach I've seen is to create the log strings inside an if-statement gated by The reason I bring this up is that it's very convenient having logging entirely managed through the logging framework, when it comes to temporarily enabling different log levels through a standard config file, or even while the system is running. We sometimes do this in the application I'm using Fenzo in, Cook, since it's made of quite a few major, complex libraries. |
Fixed via #64 |
Awesome, thanks @aspyker |
Yes, thank you!
|
0.8.4 has these changes. JavaDocs are updates as well. |
Closing this issue since it has been addressed already. |
Currently, I am trying to debug an issue where I provide with one task and one lease to schedule, and fenzo says that it has zero successful or failed assignments. I'm trying to debug this, but since there's no debug logging available, it's tricky to trace what's going on.
The text was updated successfully, but these errors were encountered: