fix warning / ws_cobra_subscribe does not need a verbose flag

This commit is contained in:
Benjamin Sergeant 2019-04-19 11:45:42 -07:00
parent 65db8c9b00
commit 56f164ce2b
3 changed files with 3 additions and 7 deletions

View File

@ -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"))
{

View File

@ -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,

View File

@ -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;
});
}