mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Set the level of logs in the config file
This commit is contained in:
parent
804039b6aa
commit
320998ef78
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
debug_level: info
|
||||||
|
|
||||||
ldap:
|
ldap:
|
||||||
url: ldap://ldap
|
url: ldap://ldap
|
||||||
base_dn: ou=users,dc=example,dc=com
|
base_dn: ou=users,dc=example,dc=com
|
||||||
|
|
|
@ -18,6 +18,7 @@ var config = {
|
||||||
session_secret: yaml_config.session.secret,
|
session_secret: yaml_config.session.secret,
|
||||||
session_max_age: yaml_config.session.expiration || 3600000, // in ms
|
session_max_age: yaml_config.session.expiration || 3600000, // in ms
|
||||||
store_directory: yaml_config.store_directory,
|
store_directory: yaml_config.store_directory,
|
||||||
|
debug_level: yaml_config.debug_level,
|
||||||
gmail: {
|
gmail: {
|
||||||
user: yaml_config.notifier.gmail.username,
|
user: yaml_config.notifier.gmail.username,
|
||||||
pass: yaml_config.notifier.gmail.password
|
pass: yaml_config.notifier.gmail.password
|
||||||
|
|
|
@ -44,7 +44,7 @@ function run(config, ldap_client, u2f, fn) {
|
||||||
app.set('views', view_directory);
|
app.set('views', view_directory);
|
||||||
app.set('view engine', 'ejs');
|
app.set('view engine', 'ejs');
|
||||||
|
|
||||||
winston.level = 'debug';
|
winston.level = config.debug_level || 'info';
|
||||||
|
|
||||||
app.set('logger', winston);
|
app.set('logger', winston);
|
||||||
app.set('ldap client', ldap_client);
|
app.set('ldap client', ldap_client);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user