fix(core): update
This commit is contained in:
parent
97345b93e1
commit
d73911a52d
@ -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'
|
||||
}
|
||||
|
@ -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.`);
|
||||
|
Loading…
Reference in New Issue
Block a user