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, "clusters": 10,
"log": { "log": {
"logLevel": "info", "logLevel": "trace",
"dumpLevel": "error" "dumpLevel": "error"
}, },
"healthChecks": { "healthChecks": {

View File

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

View File

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

View File

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

View File

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

View File

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