Apply automatic rubocop fixes
This commit is contained in:
@ -91,7 +91,7 @@ class DockerClient
|
||||
# Internally, Faye::WebSocket uses EventMachine and the ping value is used to wake the EventMachine thread
|
||||
socket = Faye::WebSocket::Client.new(socket_url, [], headers: headers, ping: 0.1)
|
||||
|
||||
Rails.logger.debug "Opening Websocket on URL #{socket_url}"
|
||||
Rails.logger.debug { "Opening Websocket on URL #{socket_url}" }
|
||||
|
||||
socket.on :error do |event|
|
||||
Rails.logger.info "Websocket error: #{event.message}"
|
||||
@ -350,7 +350,7 @@ container_execution_time: nil}
|
||||
end
|
||||
|
||||
def exit_container(container)
|
||||
Rails.logger.debug("exiting container #{container}")
|
||||
Rails.logger.debug { "exiting container #{container}" }
|
||||
# exit the timeout thread if it is still alive
|
||||
exit_thread_if_alive
|
||||
@socket.close
|
||||
@ -459,7 +459,7 @@ container_execution_time: nil}
|
||||
end
|
||||
|
||||
def self.return_container(container, execution_environment)
|
||||
Rails.logger.debug("returning container #{container}")
|
||||
Rails.logger.debug { "returning container #{container}" }
|
||||
begin
|
||||
clean_container_workspace(container)
|
||||
rescue Docker::Error::NotFoundError => e
|
||||
|
@ -53,7 +53,7 @@ module Prometheus
|
||||
end
|
||||
|
||||
def update_notification(object)
|
||||
Rails.logger.debug("Prometheus metric updated for #{object.class.name}")
|
||||
Rails.logger.debug { "Prometheus metric updated for #{object.class.name}" }
|
||||
|
||||
case object
|
||||
when RequestForComment
|
||||
@ -63,7 +63,7 @@ module Prometheus
|
||||
|
||||
def create_notification(object)
|
||||
@instance_count.increment(class: object.class.name)
|
||||
Rails.logger.debug("Prometheus instance count increased for #{object.class.name}")
|
||||
Rails.logger.debug { "Prometheus instance count increased for #{object.class.name}" }
|
||||
|
||||
case object
|
||||
when RequestForComment
|
||||
@ -75,7 +75,7 @@ module Prometheus
|
||||
|
||||
def destroy_notification(object)
|
||||
@instance_count.decrement(class: object.class.name)
|
||||
Rails.logger.debug("Prometheus instance count decreased for #{object.class.name}")
|
||||
Rails.logger.debug { "Prometheus instance count decreased for #{object.class.name}" }
|
||||
|
||||
case object
|
||||
when Comment
|
||||
|
Reference in New Issue
Block a user