diff --git a/plugins/dummy.py b/plugins/dummy.py index 5813571..58286b4 100755 --- a/plugins/dummy.py +++ b/plugins/dummy.py @@ -5,26 +5,26 @@ class ProxyHandler: - # - # `logger' stands for logging object instance, `params' will be - # a dictonary of input paramerers for the script. Having passed to the - # program a string like: - # - # $ ./proxy2 -p "plugins/my_plugin.py",argument1="test",argument2,argument3=test2 - # - # This plugin shall receive: - # - # params = {'path':'plugins/my_plugin.py', - # 'argument1':'t,e,s,t', 'argument2':'', 'argument3':'test2'} - # - def __init__(self, logger, params): - self.logger = logger - logger.info('hello world from __init__ in ProxyHandler.') - if len(params) > 1: - logger.info('\tI have received such params: %s' % str(params)) + # + # `logger' stands for logging object instance, `params' will be + # a dictonary of input paramerers for the script. Having passed to the + # program a string like: + # + # $ ./proxy2 -p "plugins/my_plugin.py",argument1="test",argument2,argument3=test2 + # + # This plugin shall receive: + # + # params = {'path':'plugins/my_plugin.py', + # 'argument1':'test', 'argument2':'', 'argument3':'test2'} + # + def __init__(self, logger, params): + self.logger = logger + logger.info('hello world from __init__ in ProxyHandler.') + if len(params) > 1: + logger.info('\tI have received such params: %s' % str(params)) - def request_handler(self, req, req_body): - self.logger.info('hello world from request_handler! Req: "%s"' % req.path) + def request_handler(self, req, req_body): + self.logger.info('hello world from request_handler! Req: "%s"' % req.path) - def response_handler(self, req, req_body, res, res_body): - self.logger.info('hello world from response_handler! Req: "%s"' % req.path) \ No newline at end of file + def response_handler(self, req, req_body, res, res_body): + self.logger.info('hello world from response_handler! Req: "%s"' % req.path) \ No newline at end of file