Show port and protocol when printing service notes, not just name

bug/bundler_fix
Jon Hart 2014-07-18 17:40:32 -07:00
parent 9955cb5b27
commit a4f623a955
1 changed files with 3 additions and 2 deletions

View File

@ -1109,8 +1109,9 @@ class Db
end end
end end
if (note.service) if (note.service)
name = (note.service.name ? note.service.name : "#{note.service.port}/#{note.service.proto}") msg << " service=#{note.service.name}" if note.service.name
msg << " service=#{name}" msg << " port=#{note.service.port}" if note.service.port
msg << " protocol=#{note.service.proto}" if note.service.proto
end end
msg << " type=#{note.ntype} data=#{note.data.inspect}" msg << " type=#{note.ntype} data=#{note.data.inspect}"
print_status(msg) print_status(msg)