lib/rest-ftp-daemon/api/jobs.rb in rest-ftp-daemon-0.434.0 vs lib/rest-ftp-daemon/api/jobs.rb in rest-ftp-daemon-0.435.0

- old
+ new

@@ -3,9 +3,16 @@ module RestFtpDaemon module API class Jobs < Grape::API include BmcDaemonLib + ### HELPERS + helpers do + def log_context + {caller: "API::Jobs"} + end + end + ### EXCEPTIONS HANDLERS rescue_from RestFtpDaemon::JobNotFound do |exception| exception_error :api_job_not_found, 404, exception end rescue_from JSON::ParserError do |exception|