diff options
Diffstat (limited to 'lib/result_event.rb')
-rw-r--r-- | lib/result_event.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/result_event.rb b/lib/result_event.rb index 31c807d..a5978c6 100644 --- a/lib/result_event.rb +++ b/lib/result_event.rb @@ -7,14 +7,14 @@ class ResultEvent path= evbody[0]['ressource'] resultr= @ecs.connection[path].delete result= JSON::parse(resultr) - Rails.logger.info "***** ResultEvent#process: #{path} = #{result}" + Rails.logger.debug "***** ResultEvent#process: #{path} = #{result}" # remove exercise referenced through solution embedded in result path= URI(result["Result"]["Solution"]["exercise"]).path[1..-1] @ecs.connection[path].delete do |response, request, result, &block| case response.code when 404 - Rails.logger.info "***** ResultEvent#process: garbage collect: resource = #{path} not found (404)" + Rails.logger.warn "***** ResultEvent#process: garbage collect: resource = #{path} not found (404)" else response.return!(request, result, &block) end @@ -36,9 +36,9 @@ class ResultEvent p[:identifier]= result["Result"]["Solution"]["evaluationService"]["jobID"] receiver= result["Result"]["Solution"]["evaluationService"]["jobSender"] body= "{\"Points\": #{p.to_json} }" - Rails.logger.info "***** ResultEvent#process points body = #{body}, points receiver mid = #{receiver}" + Rails.logger.debug "***** ResultEvent#process points body = #{body}, points receiver mid = #{receiver}" response= @ecs.connection[APP_CONFIG["resources"]["points"]["name"]].post body, {"X-EcsReceiverMemberships" => receiver} do |response, request, result| - Rails.logger.info "***** ResultEvent#process post response headers: #{response.headers}" + Rails.logger.debug "***** ResultEvent#process post response headers: #{response.headers}" end end end |