소스 검색

debug on cool_dns

Paul Klumpp 12 년 전
부모
커밋
a0ce6e827c
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      em_server.rb

+ 6 - 2
em_server.rb

@@ -455,10 +455,14 @@ class GameServers
 
   def get_cool_dns(iphost, ipport)
     put_log "get_cool_dns drin"
-    @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
+    cool_dns = @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
+    put_log "cool_dns for #{iphost}:#{ipport} is: #{cool_dns}"
+    return cool_dns
   rescue
     scanserver("#{iphost}:#{ipport}", "qw")
-    @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
+    cool_dns = @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
+    put_log "cool_dns for #{iphost}:#{ipport} is: #{cool_dns}"
+    return cool_dns
   end
 
   private # all following methods are private