lib/apnserver/client.rb in bpoweski-apnserver-0.0.14 vs lib/apnserver/client.rb in bpoweski-apnserver-0.0.15
- old
+ new
@@ -29,10 +29,10 @@
@ssl.close
@sock.close
end
def write(notification)
- $logger.info "[#{host}:#{port}] Device: #{notification.device_token.unpack('H*')} sending #{notification.json_payload}"
+ puts "[#{host}:#{port}] Device: #{notification.device_token.unpack('H*')} sending #{notification.json_payload}"
@ssl.write(notification.to_bytes)
end
def connected?
@ssl
\ No newline at end of file