fix(core): update
This commit is contained in:
parent
97345b93e1
commit
d73911a52d
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartlog-destination-receiver',
|
name: '@pushrocks/smartlog-destination-receiver',
|
||||||
version: '2.0.2',
|
version: '2.0.3',
|
||||||
description: 'a smartlog destination for smartlog-receiver'
|
description: 'a smartlog destination for smartlog-receiver'
|
||||||
}
|
}
|
||||||
|
@ -21,10 +21,8 @@ export class SmartlogDestinationReceiver implements ILogDestination {
|
|||||||
private errorCounter = 0;
|
private errorCounter = 0;
|
||||||
public async handleLog(logPackageArg: ILogPackage) {
|
public async handleLog(logPackageArg: ILogPackage) {
|
||||||
const response = await this.webrequest.postJson(this.options.receiverEndpoint, {
|
const response = await this.webrequest.postJson(this.options.receiverEndpoint, {
|
||||||
requestBody: {
|
auth: plugins.smarthash.sha256FromStringSync(this.options.passphrase),
|
||||||
auth: plugins.smarthash.sha256FromStringSync(this.options.passphrase),
|
logPackage: logPackageArg,
|
||||||
logPackage: logPackageArg,
|
|
||||||
},
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
if (this.errorCounter % 100 === 0) {
|
if (this.errorCounter % 100 === 0) {
|
||||||
console.error(`There seems to be an error with logging.`);
|
console.error(`There seems to be an error with logging.`);
|
||||||
|
Loading…
Reference in New Issue
Block a user