fix(core): update

This commit is contained in:
Philipp Kunz 2022-07-29 03:01:21 +02:00
parent 97345b93e1
commit d73911a52d
2 changed files with 3 additions and 5 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartlog-destination-receiver',
version: '2.0.2',
version: '2.0.3',
description: 'a smartlog destination for smartlog-receiver'
}

View File

@ -21,10 +21,8 @@ export class SmartlogDestinationReceiver implements ILogDestination {
private errorCounter = 0;
public async handleLog(logPackageArg: ILogPackage) {
const response = await this.webrequest.postJson(this.options.receiverEndpoint, {
requestBody: {
auth: plugins.smarthash.sha256FromStringSync(this.options.passphrase),
logPackage: logPackageArg,
},
auth: plugins.smarthash.sha256FromStringSync(this.options.passphrase),
logPackage: logPackageArg,
}).catch(err => {
if (this.errorCounter % 100 === 0) {
console.error(`There seems to be an error with logging.`);