Commit 98adcb0b authored by Félix Hamel's avatar Félix Hamel

* Make hostname more relevant with env in it

parent 1430c849
......@@ -41,7 +41,7 @@ if (typeof process.env.LOGDNA_KEY !== "undefined") {
app: process.env.LOGDNA_APP_NAME || "core",
env: process.env.LOGDNA_ENV || "local",
level: process.env.LOGDNA_LEVEL || "info",
hostname: process.env.LOGDNA_HOSTNAME || os.hostname()
hostname: ((process.env.LOGDNA_ENV) ? process.env.LOGDNA_ENV : 'local') + ":" + (process.env.LOGDNA_HOSTNAME || os.hostname())
});
streams.push({
......
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