lib/apnserver/client.rb in bpoweski-apnserver-0.0.12 vs lib/apnserver/client.rb in bpoweski-apnserver-0.0.14

- old
+ new

@@ -29,10 +29,10 @@ @ssl.close @sock.close end def write(notification) - puts "#{Time.now} [#{host}:#{port}] sending #{notification.alert}" + $logger.info "[#{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