From 265afaf7a090f74a20760de3198639cd22fc8688 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Thu, 11 Jan 2018 14:27:43 -0800 Subject: [PATCH] remove access_log and error_log cruft that wasn't being executed --- certbot-nginx/certbot_nginx/http_01.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/certbot-nginx/certbot_nginx/http_01.py b/certbot-nginx/certbot_nginx/http_01.py index 3f814f4a7..1f1e37891 100644 --- a/certbot-nginx/certbot_nginx/http_01.py +++ b/certbot-nginx/certbot_nginx/http_01.py @@ -101,16 +101,6 @@ class NginxHttp01(common.ChallengePerformer): location_directive = [[['location', ' ', '=', ' ', validation_path], [['default_type', ' ', 'text/plain'], ['return', ' ', '200', ' ', validation]]]] - log_directives = [# access and error logs necessary for - # integration testing (non-root) - ['access_log', ' ', os.path.join( - self.configurator.config.work_dir, 'access.log')], - ['error_log', ' ', os.path.join( - self.configurator.config.work_dir, 'error.log')] - ] self.configurator.parser.add_server_directives(vhost, location_directive, replace=False) - if False: # TODO: detect if we're integration testing - self.configurator.parser.add_server_directives(vhost, - log_directives, replace=False)