|
|
@ -1,7 +1,7 @@ |
|
|
|
#!/usr/bin/env python3 |
|
|
|
import lilikusers |
|
|
|
|
|
|
|
import logging |
|
|
|
from logging.handlers import RotatingFileHandler |
|
|
|
import json |
|
|
|
from flask import Flask, jsonify |
|
|
|
from flask import request, Response, redirect, url_for |
|
|
@ -9,12 +9,12 @@ from functools import wraps |
|
|
|
|
|
|
|
app = Flask(__name__) |
|
|
|
|
|
|
|
logrotate = logging.handlers.RotatingFileHandlers( |
|
|
|
logrotate = RotatingFileHandler( |
|
|
|
'/var/log/login/server', |
|
|
|
backupCount=10, |
|
|
|
) |
|
|
|
|
|
|
|
app.logger.add_handler(logrotate) |
|
|
|
app.logger.addHandler(logrotate) |
|
|
|
|
|
|
|
lilik_ldap = lilikusers.LILiK_LDAP() |
|
|
|
|
|
|
|