Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Log server connection problems at the INFO level.

  • Loading branch information...
commit 9adfdae4174b482a6e3c743e86d0ac7d9774cc82 1 parent 0a41414
@bcobb bcobb authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/gearman/worker.rb
View
8 lib/gearman/worker.rb
@@ -173,7 +173,7 @@ def update_job_servers(servers)
# Disconnect from servers that we no longer care about.
@sockets.each do |server,sock|
if not servers.include? server
- Util.logger.debug "GearmanRuby: Disconnecting from old server #{server}"
+ Util.logger.info "GearmanRuby: Disconnecting from old server #{server}"
sock.close
@sockets.delete(server)
end
@@ -182,11 +182,11 @@ def update_job_servers(servers)
servers.each do |server|
if not @sockets[server]
begin
- Util.logger.debug "GearmanRuby: Connecting to server #{server}"
+ Util.logger.info "GearmanRuby: Connecting to server #{server}"
@sockets[server] = connect(server)
rescue NetworkError
@bad_servers << server
- Util.logger.debug "GearmanRuby: Unable to connect to #{server}"
+ Util.logger.info "GearmanRuby: Unable to connect to #{server}"
end
end
end
@@ -375,7 +375,7 @@ def work
Util.logger.debug "GearmanRuby: Got #{type.to_s} from #{hostport}"
end
rescue Exception
- Util.logger.debug "GearmanRuby: Server #{hostport} timed out or lost connection (#{$!.inspect}); marking bad"
+ Util.logger.info "GearmanRuby: Server #{hostport} timed out or lost connection (#{$!.inspect}); marking bad"
bad_servers << hostport
break
end
Please sign in to comment.
Something went wrong with that request. Please try again.