mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
move captiveportal log to nginx -- actually the uwsgi used by captiveportal
This commit is contained in:
parent
1c5488b57f
commit
449c0c5a27
1 changed files with 3 additions and 3 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue