Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
040c93dec3 | |||
21e55bd341 | |||
f1d04fe63c | |||
49c4660131 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@apiclient.xyz/elasticsearch",
|
||||
"version": "2.0.8",
|
||||
"version": "2.0.10",
|
||||
"private": false,
|
||||
"description": "log to elasticsearch in a kibana compatible format",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@apiclient.xyz/elasticsearch',
|
||||
version: '2.0.8',
|
||||
version: '2.0.10',
|
||||
description: 'log to elasticsearch in a kibana compatible format'
|
||||
}
|
||||
|
@ -107,7 +107,6 @@ export class ElasticDoc {
|
||||
if (this.onlyNew) {
|
||||
if (this.latestTimestamp && optionsArg.timestamp <= this.latestTimestamp) {
|
||||
// Omit the document
|
||||
return;
|
||||
} else {
|
||||
await this.client.index({
|
||||
index: this.index,
|
||||
|
@ -68,7 +68,7 @@ export class ElsSmartlogDestination<T> {
|
||||
get logDestination(): ILogDestination {
|
||||
return {
|
||||
handleLog: async (smartlogPackageArg: ILogPackage) => {
|
||||
this.log(smartlogPackageArg);
|
||||
await this.log(smartlogPackageArg);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user