From bbc5cfb24cc5692ea8240adb1444df7eff91875c Mon Sep 17 00:00:00 2001 From: daniel goldberg Date: Mon, 29 Aug 2016 17:42:19 +0300 Subject: [PATCH] Add log --- chaos_monkey/network/httpfinger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chaos_monkey/network/httpfinger.py b/chaos_monkey/network/httpfinger.py index a7bb56e2e..437edbf6c 100644 --- a/chaos_monkey/network/httpfinger.py +++ b/chaos_monkey/network/httpfinger.py @@ -1,6 +1,8 @@ from network import HostFinger from model.host import VictimHost +import logging +LOG = logging.getLogger(__name__) class HTTPFinger(HostFinger): """ @@ -35,6 +37,7 @@ class HTTPFinger(HostFinger): host.services['tcp-' + port[1]] = {} host.services['tcp-' + port[1]]['name'] = 'http' host.services['tcp-' + port[1]]['data'] = (server,ssl) + LOG.info("Port %d is open on host %s " % (port[0], host)) break # https will be the same on the same port except Timeout: pass