@bitdiver/runner-server
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -58,3 +58,3 @@ 'use strict'; | ||
constructor(opts) { | ||
const param = (0, _extends3.default)({ targetDir: 'log', logLevel: 'warn' }, opts); | ||
const param = (0, _extends3.default)({ targetDir: 'log', logLevel: LEVEL_WARNING }, opts); | ||
@@ -128,3 +128,3 @@ this.targetDir = param.targetDir; | ||
const data = logMessage.data; | ||
const messageLogLevel = meta.logLevel; | ||
const messageLogLevel = logMessage.logLevel; | ||
@@ -131,0 +131,0 @@ const messageShouldBeLogged = this._messageShouldBeLogged(messageLogLevel, this.logAdapterLogLevel); |
{ | ||
"name": "@bitdiver/runner-server", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -6,3 +6,3 @@ import { getLogAdapter } from '../lib' | ||
test('Loglevel debug', async done => { | ||
test('>Loglevel debug', async done => { | ||
const logMessage = { | ||
@@ -13,4 +13,4 @@ meta: { | ||
}, | ||
logLevel: 'debug', | ||
}, | ||
logLevel: 'debug', | ||
data: {}, | ||
@@ -21,3 +21,3 @@ } | ||
await LOG_ADAPTER._messageShouldBeLogged( | ||
logMessage.meta.logLevel, | ||
logMessage.logLevel, | ||
LOG_ADAPTER_LOG_LEVEL | ||
@@ -29,3 +29,3 @@ ) | ||
test('Loglevel info', async done => { | ||
test('>Loglevel info', async done => { | ||
const logMessage = { | ||
@@ -36,4 +36,4 @@ meta: { | ||
}, | ||
logLevel: 'info', | ||
}, | ||
logLevel: 'info', | ||
data: {}, | ||
@@ -43,3 +43,3 @@ } | ||
await LOG_ADAPTER._messageShouldBeLogged( | ||
logMessage.meta.logLevel, | ||
logMessage.logLevel, | ||
LOG_ADAPTER_LOG_LEVEL | ||
@@ -57,4 +57,4 @@ ) | ||
}, | ||
logLevel: 'warn', | ||
}, | ||
logLevel: 'warn', | ||
data: {}, | ||
@@ -65,3 +65,3 @@ } | ||
await LOG_ADAPTER._messageShouldBeLogged( | ||
logMessage.meta.logLevel, | ||
logMessage.logLevel, | ||
LOG_ADAPTER_LOG_LEVEL | ||
@@ -79,4 +79,4 @@ ) | ||
}, | ||
logLevel: 'error', | ||
}, | ||
logLevel: 'error', | ||
data: {}, | ||
@@ -87,3 +87,3 @@ } | ||
await LOG_ADAPTER._messageShouldBeLogged( | ||
logMessage.meta.logLevel, | ||
logMessage.logLevel, | ||
LOG_ADAPTER_LOG_LEVEL | ||
@@ -101,4 +101,4 @@ ) | ||
}, | ||
logLevel: 'fatal', | ||
}, | ||
logLevel: 'fatal', | ||
data: {}, | ||
@@ -109,3 +109,3 @@ } | ||
await LOG_ADAPTER._messageShouldBeLogged( | ||
logMessage.meta.logLevel, | ||
logMessage.logLevel, | ||
LOG_ADAPTER_LOG_LEVEL | ||
@@ -112,0 +112,0 @@ ) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71903