director/lib/director/event_log.rb
# Adds an error entry to the event log.
# @param [DirectorError] error Director error
# @return [void]
Adds an error entry to the event log.
Adds an error entry to the event log .
def log_error(error)
      entry = {
        :time => Time.now.to_i,
        :error => {
          :code => error.error_code,
          :message => error.message
        }
      }
      @logger.info(Yajl::Encoder.encode(entry))
    end
def log_error ( error ) entry = { :time => Time . now . to_i , :error => { :code => error . error_code , :message => error . message } } @logger . info ( Yajl :: Encoder . encode ( entry ) ) end
Adds an error entry to the event log.
Adds an error entry to the event log .
None
void
error
error Director error
error Director error