diff --git a/ws/ws.cpp b/ws/ws.cpp index 20b0e2f9..a2ca0337 100644 --- a/ws/ws.cpp +++ b/ws/ws.cpp @@ -133,7 +133,6 @@ int main(int argc, char** argv) cobraSubscribeApp->add_option("--rolename", rolename, "Role name"); cobraSubscribeApp->add_option("--rolesecret", rolesecret, "Role secret"); cobraSubscribeApp->add_option("channel", channel, "Channel")->required(); - cobraSubscribeApp->add_flag("-v", verbose, "Verbose"); cobraSubscribeApp->add_option("--pidfile", pidfile, "Pid file"); CLI::App* cobra2statsd = app.add_subcommand("cobra_to_statsd", "Cobra to statsd"); @@ -227,7 +226,7 @@ int main(int argc, char** argv) { return ix::ws_cobra_subscribe_main(appkey, endpoint, rolename, rolesecret, - channel, verbose); + channel); } else if (app.got_subcommand("cobra_to_statsd")) { diff --git a/ws/ws.h b/ws/ws.h index d78624f1..e574ef12 100644 --- a/ws/ws.h +++ b/ws/ws.h @@ -57,8 +57,7 @@ namespace ix const std::string& endpoint, const std::string& rolename, const std::string& rolesecret, - const std::string& channel, - bool verbose); + const std::string& channel); int ws_cobra_to_statsd_main(const std::string& appkey, const std::string& endpoint, diff --git a/ws/ws_cobra_subscribe.cpp b/ws/ws_cobra_subscribe.cpp index a31dbf62..ca4a25a5 100644 --- a/ws/ws_cobra_subscribe.cpp +++ b/ws/ws_cobra_subscribe.cpp @@ -17,8 +17,7 @@ namespace ix const std::string& endpoint, const std::string& rolename, const std::string& rolesecret, - const std::string& channel, - bool verbose) + const std::string& channel) { ix::CobraConnection conn; @@ -51,7 +50,6 @@ namespace ix conn.subscribe(channel, [&jsonWriter](const Json::Value& msg) { - // std::cout << "Received message" << std::endl; std::cout << jsonWriter.write(msg) << std::endl; }); }