Compare commits

...

1 Commits

Author SHA1 Message Date
Lauren Spiegel 9265f8e944 investigate missing logs 2017-07-11 18:56:53 -07:00
6 changed files with 8 additions and 3 deletions

View File

@ -32,7 +32,7 @@
},
"clusters": 10,
"log": {
"logLevel": "info",
"logLevel": "trace",
"dumpLevel": "error"
},
"healthChecks": {

View File

@ -472,7 +472,7 @@ class Config {
this.log.dumpLevel = config.log.dumpLevel;
}
}
console.log("log level!!", this.log.logLevel)
this.kms = {};
if (config.kms) {
assert(typeof config.kms.userName === 'string');

View File

@ -4,6 +4,7 @@ const werelogs = require('werelogs');
const { config } = require('../../Config');
console.log("log level in memory file!!", config.log)
const logger = new werelogs.Logger('MemDataBackend', {
logLevel: config.log.logLevel,
dumpLevel: config.log.dumpLevel,

View File

@ -1,6 +1,7 @@
const werelogs = require('werelogs');
const { config } = require('../Config');
console.log("log level in MultipleBackendGateway file!!", config.log)
const logger = new werelogs.Logger('MultipleBackendGateway', {
logLevel: config.log.logLevel,
dumpLevel: config.log.dumpLevel,

View File

@ -29,6 +29,8 @@ const STATS_EXPIRY = 30; // 30 seconds
const statsClient = new StatsClient(localCacheClient, STATS_INTERVAL,
STATS_EXPIRY);
console.log("logger!!", logger)
class S3Server {
/**
* This represents our S3 connector.
@ -166,7 +168,7 @@ class S3Server {
}
function main() {
let clusters = _config.clusters || 1;
let clusters = 1;
if (process.env.S3BACKEND === 'mem') {
clusters = 1;
}

View File

@ -7,4 +7,5 @@ const logger = new werelogs.Logger('S3', {
dump: _config.log.dumpLevel,
});
module.exports = logger;