Browse Source

fix log formatter definition

master
Edoardo Putti 7 years ago
parent
commit
e4d7c051a9
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      server.py

+ 3
- 2
server.py View File

@ -10,7 +10,7 @@ from functools import wraps
app = Flask(__name__)
logfmt = 'time=%(asctime)s level=%(levelname)s app=%(name) msg=%(message)s'
logfmt = logging.Formatter('time=%(asctime)s level=%(levelname)s app=%(name) msg=%(message)s')
logrotate = RotatingFileHandler(
'/var/log/login/server',
@ -26,7 +26,8 @@ app.logger.addHandler(logrotate)
lilik_ldap = lilikusers.LILiK_LDAP()
def check_auth(user_name, password):
"""This function is called to check if a username /
"""
This function is called to check if a username /
password combination is valid.
"""
if lilik_ldap.login(user_name, password):


Loading…
Cancel
Save