X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Fcommunication.js;h=03cc670dd7154ccc64a50b87f4d7bb1d5eddafb3;hb=0423b523c5cd014779acd8bf01919263e7a40c0e;hp=097da637bd418d4d655f04aa65651ad5df709e5d;hpb=9812213260e952ae601f94ab0915c680e8c80495;p=websub-hub diff --git a/src/communication.js b/src/communication.js index 097da63..03cc670 100644 --- a/src/communication.js +++ b/src/communication.js @@ -57,7 +57,7 @@ class Communication { static userAgentString(userAgentConfig) { // eslint-disable-next-line security/detect-object-injection const _conf = (field, def) => (userAgentConfig && field in userAgentConfig) ? userAgentConfig[field] : def; - const product = _conf('product', packageName); + const product = _conf('product', packageName).split('/').pop(); const version = _conf('version', packageVersion); let implementation = _conf('implementation', Enum.Specification); if (implementation) { @@ -443,7 +443,7 @@ class Communication { // Cull any expired subscriptions await this.db.subscriptionDeleteExpired(dbCtx, topicId); - logInfoData.url = topicId.url; + logInfoData.url = topic.url; if (topic.isDeleted) { this.logger.debug(_scope, 'topic deleted, skipping update request', logInfoData);