Statlog to config

This commit is contained in:
Bryan Ashby 2018-11-11 01:58:49 -07:00
parent 322274a115
commit 00a0e131b4
2 changed files with 15 additions and 1 deletions

View File

@ -92,7 +92,14 @@ function userLogin(client, username, password, cb) {
userId : user.userId,
sessionId : user.sessionId,
});
return StatLog.appendSystemLogEntry('user_login_history', historyItem, loginHistoryMax, StatLog.KeepType.Max, callback);
return StatLog.appendSystemLogEntry(
'user_login_history',
historyItem,
loginHistoryMax,
StatLog.KeepType.Max,
callback
);
}
],
err => {

View File

@ -366,4 +366,11 @@
// see the documentation for more information!
//
}
statLog: {
systemEvents: {
// Max login history event records kept. -1 = unlimited
loginHistoryMax: -1
}
}
}