Module: Forklift
- Defined in:
- lib/forklift.rb,
lib/forklift/ui.rb,
lib/forklift/master.rb,
lib/forklift/worker.rb,
lib/forklift/version.rb,
lib/forklift/master_old.rb
Defined Under Namespace
Classes: Master, UI, Worker
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
.log_error(logger, prefix, exc) ⇒ Object
12
13
14
15
16
17
|
# File 'lib/forklift.rb', line 12
def self.log_error(logger, prefix, exc)
message = exc.message
message = message.dump if /[[:cntrl:]]/ =~ message
logger.error "#{prefix}: #{message} (#{exc.class})"
exc.backtrace.each { |line| logger.error(line) }
end
|