Skip to content
Snippets Groups Projects
Verified Commit 8f142fc7 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Added some temporary debugging output

parent 27c286f5
No related branches found
No related tags found
No related merge requests found
...@@ -165,6 +165,10 @@ module Apex ...@@ -165,6 +165,10 @@ module Apex
while @packet_buffer.length > 0 while @packet_buffer.length > 0
packet = @packet_buffer.pop packet = @packet_buffer.pop
unless (filter_logresp and packet.start_with?('#')) unless (filter_logresp and packet.start_with?('#'))
puts("====================================")
puts packet.class.to_s
puts packet.to_s
puts("-------------------------------------")
return IGateTcp::decode_frame(packet) return IGateTcp::decode_frame(packet)
end end
end end
......
...@@ -14,7 +14,7 @@ module Apex ...@@ -14,7 +14,7 @@ module Apex
hops.each do |hop| hops.each do |hop|
raise ArgumentError.new("All arguments must not be nil: #{hops.to_s}") if (hop.nil?) raise ArgumentError.new("All arguments must not be nil: #{hops.to_s}") if (hop.nil?)
raise ArgumentError.new("All arguments must be of type Hop: #{hops.class.to_s}") if not hop.kind_of? Apex::Hop raise ArgumentError.new("All arguments must be of type Hop: #{hops.class.to_s}") if not hop.kind_of? Apex::Hop
#raise ArgumentError.new("A seen hop can not follow an unseen hop: #{hops.join(',').to_s}") if (hop.seen?) && (!last_seen) raise ArgumentError.new("A seen hop can not follow an unseen hop: #{hops.join(',').to_s}") if (hop.seen?) && (!last_seen)
last_seen = false if not hop.seen? last_seen = false if not hop.seen?
@path_array << hop @path_array << hop
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment