mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
adjust logging
This commit is contained in:
parent
9c19f9112f
commit
cad855ec25
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='{{ 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)
|
||||
logging.basicConfig(filename='/var/log/uwsgi/app/captiveportal.log',format='%(asctime)s.%(msecs)03d:%(name)s:%(message)s', datefmt='%M:%S',level=loggingLevel)
|
||||
logger = logging.getLogger('/var/log/uwsgi/app/captiveportal.log')
|
||||
handler = RotatingFileHandler("/var/log/uwsgi/app/captiveportal.log", maxBytes=100000, backupCount=2)
|
||||
logger.addHandler(handler)
|
||||
|
||||
PORT={{ captiveportal_port }}
|
||||
|
|
Loading…
Add table
Reference in a new issue