diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-07-29 12:11:56 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-07-29 12:11:56 +0100 |
commit | 5f57bc117ff110d21fe6c130816c208c35f0b987 (patch) | |
tree | 0fb738b571bb18bd90f569e21ecf1221ed4024bc /lib/mauve/processor.rb | |
parent | fd23821950f0562a8995735105cd31fdc6d55933 (diff) |
* Added initial logger
* Acknowledgement time calculations now in JS
* Updated logging to indicate where and update comes from
Diffstat (limited to 'lib/mauve/processor.rb')
-rw-r--r-- | lib/mauve/processor.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mauve/processor.rb b/lib/mauve/processor.rb index f5e8fac..059ca15 100644 --- a/lib/mauve/processor.rb +++ b/lib/mauve/processor.rb @@ -43,9 +43,9 @@ module Mauve Timer.instance.freeze if Timer.instance.alive? and !Timer.instance.frozen? - logger.debug("Got #{data.inspect} from #{client.inspect}") + # logger.debug("Got #{data.inspect} from #{client.inspect}") - ip_source = "#{client[3]}:#{client[1]}" + ip_source = "#{client[3]}" update = Proto::AlertUpdate.new begin @@ -62,7 +62,7 @@ module Mauve logger.debug "Update #{update.transmission_id} sent at #{update.transmission_time} from "+ "'#{update.source}'@#{ip_source} alerts #{update.alert.length}" - Alert.receive_update(update, received_at) + Alert.receive_update(update, received_at, ip_source) rescue Protobuf::InvalidWireType, NotImplementedError, |