lib/apnserver/protocol.rb in bpoweski-apnserver-0.0.14 vs lib/apnserver/protocol.rb in bpoweski-apnserver-0.0.15

- old
+ new

@@ -1,14 +1,14 @@ module ApnServer module Protocol def post_init @address = Socket.unpack_sockaddr_in(self.get_peername) - $logger.debug "[#{address.last}:#{address.first}] CONNECT" + puts "[#{address.last}:#{address.first}] CONNECT" end def unbind - $logger.debug "[#{address.last}:#{address.first}] DISCONNECT" + puts "[#{address.last}:#{address.first}] DISCONNECT" end def receive_data(data) (@buf ||= "") << data if notification = ApnServer::Notification.valid?(@buf) \ No newline at end of file