You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by nk...@apache.org on 2019/08/06 05:43:39 UTC

[pulsar-client-node] branch master updated: statsIntervalInSeconds can be 0 to disable log

This is an automated email from the ASF dual-hosted git repository.

nkurihar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git


The following commit(s) were added to refs/heads/master by this push:
     new 53b0ef5  statsIntervalInSeconds can be 0 to disable log
     new 4c4518e  Merge pull request #43 from freeart/master
53b0ef5 is described below

commit 53b0ef5c5ca740ddba8155c683393404a428fb94
Author: Pavel Nekrasov <pa...@resultdevelopment.com>
AuthorDate: Mon Aug 5 17:30:41 2019 +0200

    statsIntervalInSeconds can be 0 to disable log
---
 src/Client.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Client.cc b/src/Client.cc
index a0c5bad..02fa2f5 100644
--- a/src/Client.cc
+++ b/src/Client.cc
@@ -134,9 +134,7 @@ Client::Client(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Client>(info)
 
   if (clientConfig.Has(CFG_STATS_INTERVAL) && clientConfig.Get(CFG_STATS_INTERVAL).IsNumber()) {
     uint32_t statsIntervalInSeconds = clientConfig.Get(CFG_STATS_INTERVAL).ToNumber().Uint32Value();
-    if (statsIntervalInSeconds > 0) {
-      pulsar_client_configuration_set_stats_interval_in_seconds(cClientConfig, statsIntervalInSeconds);
-    }
+    pulsar_client_configuration_set_stats_interval_in_seconds(cClientConfig, statsIntervalInSeconds);
   }
 
   this->cClient = pulsar_client_create(serviceUrl.Utf8Value().c_str(), cClientConfig);