Skip to content
Snippets Groups Projects
Commit ef84e44c authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

rename 'log_path' configuration variable to 'var_path', as now it will be the...

rename 'log_path' configuration variable to 'var_path', as now it will be the path to all files created at runtime.  issue #172
parent da51efcc
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ g_configs.production = {
port: '443',
scheme: 'https',
use_minified_resources: true,
log_path: '/home/browserid/var/',
var_path: '/home/browserid/var/',
database: {
driver: "mysql",
user: 'browserid'
......@@ -90,7 +90,7 @@ g_configs.local = {
scheme: 'http',
email_to_console: true, // don't send email, just dump verification URLs to console.
use_minified_resources: false,
log_path: path.join(__dirname, "..", "var", "logs"),
var_path: path.join(__dirname, "..", "var"),
database: { driver: "json" }
};
......
......@@ -53,7 +53,7 @@ path = require('path'),
fs = require('fs');
// go through the configuration and determine log location
var log_path = configuration.get('log_path');
var log_path = path.join(configuration.get('var_path'), 'log');
// simple inline function for creation of dirs
function mkdir_p(p) {
......
......@@ -60,7 +60,7 @@ fs = require('fs');
// for now we only log to one place
// FIXME: separate logs depending on purpose?
var log_path = configuration.get('log_path');
var log_path = path.join(configuration.get('var_path'), 'log');
var LOGGER;
// simple inline function for creation of dirs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment