1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update and rename capture-wsgi.py to capture-wsgi.py.j2

This commit is contained in:
A Holt 2020-01-16 10:18:23 -05:00 committed by GitHub
parent a04d963813
commit 4cd07c5716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,9 +46,9 @@ if len(sys.argv) > 1:
loggingLevel = "DEBUG"
# set up some logging -- selectable for diagnostics
logging.basicConfig(filename='/var/log/nginx/portal.log',format='%(asctime)s.%(msecs)03d:%(name)s:%(message)s', datefmt='%M:%S',level=loggingLevel)
logger = logging.getLogger('/var/log/nginx/portal.log')
handler = RotatingFileHandler("/var/log/nginx/portal.log", maxBytes=100000, backupCount=2)
logging.basicConfig(filename='{{ nginx_log_dir }}/portal.log',format='%(asctime)s.%(msecs)03d:%(name)s:%(message)s', datefmt='%M:%S',level=loggingLevel)
logger = logging.getLogger('{{ nginx_log_dir }}/portal.log')
handler = RotatingFileHandler("{{ nginx_log_dir }}/portal.log", maxBytes=100000, backupCount=2)
logger.addHandler(handler)
PORT={{ captiveportal_port }}