Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Matrix Style Log Formatter #646
We all know that distributed programming is hard.
The current console logger is pretty handy, but for development info logging it's pretty tough to make sense of the output, after all there is only one STDOUT and many threads. -- and all the log messages are displayed sequentially.
This PR adds a new sidekiq config option:
It uses a different logger formatter to print the single letters to STDOUT offet by the index of the current thread in Thread.list.
This may not look like much to the untrained eye, but all I see is "success, failure, job milestone 1, etc"
I considered doing this much cooler in with curses, but since my project is Jruby that was not really an option.
@mperham sorry for the delay ... I had to make a sandwich. I was SO hungry.
Anyways the problem was somewhat less trivial than I expected. I had to increase the number of operations rather than decrease. This would probably only be used in development environments so hopefully it won't be too painful.
Also I'm pretty open to changing the implementation somewhat radically. No rush to merge.