lib/rest-ftp-daemon/api/root.rb in rest-ftp-daemon-0.214.0 vs lib/rest-ftp-daemon/api/root.rb in rest-ftp-daemon-0.220.0

- old
+ new

@@ -3,11 +3,12 @@ class Root < Grape::API ####### CLASS CONFIG - # logger RestFtpDaemon::Logger.new(:api, "API") + helpers RestFtpDaemon::LoggerHelper + logger RestFtpDaemon::LoggerPool.instance.get :api do_not_route_head! do_not_route_options! @@ -31,14 +32,16 @@ ####### HELPERS helpers do - def info message, lines = [] - Root.logger.info_with_id message, - lines: lines, - origin: self.class.to_s + def logger + Root.logger end + + # def log_context + # {} + # end def api_error exception { :error => exception.message, :message => exception.backtrace.first,