Commit c8c087e3 authored by Félix Hamel's avatar Félix Hamel

1.7.23

- Removed all LogDNA
parent 77572359
Pipeline #2005 failed with stages
in 53 seconds
......@@ -23,11 +23,9 @@ var P = require("bluebird"),
Injector = require("./injector"),
_ = require("lodash"),
os = require('os'),
timber = require('timber'),
LogDNAStream = require("logdna-bunyan").BunyanStream;
timber = require('timber');
// Prepare logs
/// If we don't have the LogDNA key, we don't use it
var streams = [
{
level: "info",
......@@ -47,23 +45,6 @@ if(typeof process.env.TIMBER_KEY !== "undefined") {
});
}
// Add support for LogDNA
if (typeof process.env.LOGDNA_KEY !== "undefined") {
var logDNA = new LogDNAStream({
key: process.env.LOGDNA_KEY,
app: process.env.LOGDNA_APP_NAME || "core",
env: process.env.LOGDNA_ENV || "local",
level: process.env.LOGDNA_LEVEL || "info",
hostname: ((process.env.LOGDNA_ENV) ? process.env.LOGDNA_ENV : 'local') + ":" + (process.env.LOGDNA_HOSTNAME || os.hostname())
});
streams.push({
stream: logDNA,
type: "raw"
});
}
function CMBF() {
// Prepare CMBF
......
{
"name": "cmbf-core",
"version": "1.7.22",
"version": "1.7.23",
"description": "Covistra Mobile-Backend Framework Core Module",
"main": "index.js",
"scripts": {
......@@ -32,7 +32,6 @@
"inert": "3.0.1",
"joi": "8.0.5",
"lodash": "4.17.10",
"logdna-bunyan": "^1.0.1",
"timber": "^3.1.3",
"vision": "2.0.1"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment