Module: ServerUtils

Defined in:
lib/file_sv/server_utils.rb

Overview

Helper methods added to RestServer

Instance Method Summary collapse

Instance Method Details

#log(messages) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/file_sv/server_utils.rb', line 7

def log(messages)
  if FileSv.log_type == :ougai
    log_structured(messages)
  else
    message = messages.values.join(", ")
    FileSv.logger.info "#{message}, #{request.request_method} #{request.fullpath}, CorrelationId: #{@request_id}"
  end
end