From d95d2705b0d8474f657849a0b43e686b40d5a186 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 3 Nov 2018 14:17:29 +0100 Subject: [PATCH] fix(core): update --- ts/logdna.logdnaaccount.ts | 2 +- ts/request.sh | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 ts/request.sh diff --git a/ts/logdna.logdnaaccount.ts b/ts/logdna.logdnaaccount.ts index 0761c08..fb9d5fb 100644 --- a/ts/logdna.logdnaaccount.ts +++ b/ts/logdna.logdnaaccount.ts @@ -55,7 +55,7 @@ export class LogdnaAccount { ] }; - console.log(requestBodyObject); + // console.log(requestBodyObject); // lets post the message to logdna await plugins.smartrequest.postJson(requestUrlWithParams, { diff --git a/ts/request.sh b/ts/request.sh deleted file mode 100644 index 0b7e826..0000000 --- a/ts/request.sh +++ /dev/null @@ -1,19 +0,0 @@ -curl "https://logs.logdna.com/logs/ingest?hostname=EXAMPLE_HOST&mac=C0:FF:EE:C0:FF:EE&ip=10.0.1.101&now=$(date +%s)" \ --u INSERT_INGESTION_KEY: \ --H "Content-Type: application/json; charset=UTF-8" \ --d \ -'{ - "lines": [ - { - "line":"This is an awesome log statement", - "app":"myapp", - "level": "INFO", - "env": "production", - "meta": { - "customfield": { - "nestedfield": "nestedvalue" - } - } - } - ] -}' \ No newline at end of file