lib/right_chimp/daemon/ChimpDaemonClient.rb in right_chimp-2.1.22.2 vs lib/right_chimp/daemon/ChimpDaemonClient.rb in right_chimp-2.1.24
- old
+ new
@@ -21,13 +21,13 @@
Log.debug "Response code was #{response.code}"
id = YAML::load(response.body)['id']
#ID changes upon execution, not upon submission.
job_uuid = YAML::load(response.body)['job_uuid']
- puts "["+job_uuid+"]"
+ puts '[' + job_uuid + ']'
return true
else
- $stderr.puts "["+job_uuid+"] WARNING: error submitting to chimpd! response code: #{response.code}"
+ $stderr.puts '[' + job_uuid + "] WARNING: error submitting to chimpd! response code: #{response.code}"
return false
end
rescue RestClient::RequestTimeout => ex
$stderr.puts "["+job_uuid+"] WARNING: Request timeout talking to chimpd for job #{chimp_object.script}: #{ex.message} (#{ex.http_code})"