1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

move captiveportal log to nginx -- actually the uwsgi used by captiveportal

This commit is contained in:
George Hunt 2020-01-09 10:16:27 -08:00
parent 1c5488b57f
commit 449c0c5a27

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/apache2/portal.log',format='%(asctime)s.%(msecs)03d:%(name)s:%(message)s', datefmt='%M:%S',level=loggingLevel)
logger = logging.getLogger('/var/log/apache2/portal.log')
handler = RotatingFileHandler("/var/log/apache2/portal.log", maxBytes=100000, backupCount=2)
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)
logger.addHandler(handler)
PORT={{ captiveportal_port }}