fix(core): update
This commit is contained in:
parent
271971a373
commit
4b30234cb6
@ -36,7 +36,7 @@ export class ElasticSearch<T> {
|
|||||||
constructor(optionsArg: IElasticSearchConstructorOptions) {
|
constructor(optionsArg: IElasticSearchConstructorOptions) {
|
||||||
this.client = new ElasticClient({
|
this.client = new ElasticClient({
|
||||||
host: this.computeHostString(optionsArg),
|
host: this.computeHostString(optionsArg),
|
||||||
log: 'trace'
|
// log: 'trace'
|
||||||
});
|
});
|
||||||
this.indexPrefix = optionsArg.indexPrefix;
|
this.indexPrefix = optionsArg.indexPrefix;
|
||||||
this.indexRetention = optionsArg.indexRetention;
|
this.indexRetention = optionsArg.indexRetention;
|
||||||
@ -88,7 +88,7 @@ export class ElasticSearch<T> {
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
this.elasticScheduler.addFailedDoc(logPackageArg);
|
this.elasticScheduler.addFailedDoc(logPackageArg);
|
||||||
} else {
|
} else {
|
||||||
console.log(`ElasticLog: ${logPackageArg.message}`);
|
// console.log(`ElasticLog: ${logPackageArg.message}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user