Open anquegi opened 1 year ago
Hi!
I can add an option to write this to a file. But the foremost reason to have this logger to stderr is that a command execution failed, which means there is a bug in some package/gem (this or a different one) which stops a certain function of this package from working.
Looking at the log, it seems the navigation to the method bill_user
has failed (twice). And the reason for it is that the whenever
gem has its JobList
class override the self.respond_to?
method in a fashion incompatible with Object#respond_to?
(violating the Liskov principle). It does seem like this method is unused by the gem itself, so I suggest to:
.robe
inside the project root, and restart Robe:require 'whenever/job_list'
module Whenever
class JobList
class << self
remove_method :respond_to?
end
end
end
(Code untested, let me know if it doesn't work).
To sum up, it's usually better to try to fix the errors rather than ignore them.
I've pushed an option to redirect the error logging to a file, though. See the branch error_logdev
. Let me know if it works for you, and you still think it's a good idea.
Thanks for this great package, This is not a bug, maybe is a question about usability in conjunction with inf-ruby package I'm using robe with my project rails, and i also use the Pry console as a REPL for development, but I get a lot of annoying traces when using robe in rails buffer (inf-ruby comint buffer):