lib/apnserver/protocol.rb in bpoweski-apnserver-0.0.12 vs lib/apnserver/protocol.rb in bpoweski-apnserver-0.0.14
- old
+ new
@@ -1,14 +1,14 @@
module ApnServer
module Protocol
def post_init
@address = Socket.unpack_sockaddr_in(self.get_peername)
- puts "#{Time.now} [#{address.last}:#{address.first}] CONNECT"
+ $logger.debug "[#{address.last}:#{address.first}] CONNECT"
end
def unbind
- puts "#{Time.now} [#{address.last}:#{address.first}] DISCONNECT"
+ $logger.debug "[#{address.last}:#{address.first}] DISCONNECT"
end
def receive_data(data)
(@buf ||= "") << data
if notification = ApnServer::Notification.valid?(@buf)
\ No newline at end of file