mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +08:00
Fix logging in publish event callback (#694)
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
This commit is contained in:
parent
5fcf0aa229
commit
12a85f565c
@ -227,7 +227,7 @@ aedes.on('connectionError', function (client, err) {
|
|||||||
function publishConnEvent(id, type) {
|
function publishConnEvent(id, type) {
|
||||||
var onPublish = function(err) {
|
var onPublish = function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err);
|
logger.warn('event publish failed: %s', err);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
esclient.xadd(config.event_stream, '*',
|
esclient.xadd(config.event_stream, '*',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user