class Rufus::Scheduler
def log_exception (e)
Of course, one can override this method.
be used insted.
If this scheduler provides a lwarn(message) method, it will
message will be displayed to STDOUT.
If an error occurs in the job, it well get caught and an error
def log_exception (e) message = "trigger() caught exception\n" + e.to_s + "\n" + e.backtrace.join("\n") if self.respond_to?(:lwarn) lwarn { message } else puts message end end