mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
added a loglevel setting
This commit is contained in:
parent
77ba4e3e6c
commit
3ec7dc224b
3 changed files with 12 additions and 1 deletions
|
@ -60,6 +60,9 @@ var serverName = "Etherpad-Lite " + version + " (http://j.mp/ep-lite)";
|
||||||
//cache 6 hours
|
//cache 6 hours
|
||||||
exports.maxAge = 1000*60*60*6;
|
exports.maxAge = 1000*60*60*6;
|
||||||
|
|
||||||
|
//set loglevel
|
||||||
|
log4js.setGlobalLogLevel(settings.loglevel);
|
||||||
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
//initalize the database
|
//initalize the database
|
||||||
function (callback)
|
function (callback)
|
||||||
|
|
|
@ -52,6 +52,11 @@ exports.minify = true;
|
||||||
*/
|
*/
|
||||||
exports.abiword = null;
|
exports.abiword = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The log level of log4js
|
||||||
|
*/
|
||||||
|
exports.loglevel = "INFO";
|
||||||
|
|
||||||
//read the settings sync
|
//read the settings sync
|
||||||
var settingsStr = fs.readFileSync("../settings.json").toString();
|
var settingsStr = fs.readFileSync("../settings.json").toString();
|
||||||
|
|
||||||
|
|
|
@ -34,5 +34,8 @@
|
||||||
|
|
||||||
/* This is the path to the Abiword executable. Setting it to null, disables abiword.
|
/* This is the path to the Abiword executable. Setting it to null, disables abiword.
|
||||||
Abiword is needed to enable the import/export of pads*/
|
Abiword is needed to enable the import/export of pads*/
|
||||||
"abiword" : null
|
"abiword" : null,
|
||||||
|
|
||||||
|
/* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */
|
||||||
|
"loglevel": "INFO"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue