From 2e39906fd2117cf4521e0e9613515135fdc2adaa Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 4 Nov 2018 00:05:36 +0100 Subject: [PATCH] fix(core): update --- .snyk | 4 ++++ ts/logdna.classes.logmessage.ts | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..8c7abfb --- /dev/null +++ b/.snyk @@ -0,0 +1,4 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +patch: {} diff --git a/ts/logdna.classes.logmessage.ts b/ts/logdna.classes.logmessage.ts index cf19709..e292ee3 100644 --- a/ts/logdna.classes.logmessage.ts +++ b/ts/logdna.classes.logmessage.ts @@ -63,7 +63,10 @@ export class LogdnaMessage { static fromSmartLogPackage(smartlogPackageArg: ILogPackage): LogdnaMessage { return new LogdnaMessage({ line: smartlogPackageArg.message, - meta: smartlogPackageArg.context, + meta: { + ...smartlogPackageArg.context, + logType: smartlogPackageArg.type + }, env: smartlogPackageArg.context.environment, hostname: smartlogPackageArg.context.zone, level: smartlogPackageArg.level,