fix warning / ws_cobra_subscribe does not need a verbose flag
This commit is contained in:
		| @@ -133,7 +133,6 @@ int main(int argc, char** argv) | |||||||
|     cobraSubscribeApp->add_option("--rolename", rolename, "Role name"); |     cobraSubscribeApp->add_option("--rolename", rolename, "Role name"); | ||||||
|     cobraSubscribeApp->add_option("--rolesecret", rolesecret, "Role secret"); |     cobraSubscribeApp->add_option("--rolesecret", rolesecret, "Role secret"); | ||||||
|     cobraSubscribeApp->add_option("channel", channel, "Channel")->required(); |     cobraSubscribeApp->add_option("channel", channel, "Channel")->required(); | ||||||
|     cobraSubscribeApp->add_flag("-v", verbose, "Verbose"); |  | ||||||
|     cobraSubscribeApp->add_option("--pidfile", pidfile, "Pid file"); |     cobraSubscribeApp->add_option("--pidfile", pidfile, "Pid file"); | ||||||
|  |  | ||||||
|     CLI::App* cobra2statsd = app.add_subcommand("cobra_to_statsd", "Cobra to statsd"); |     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, |         return ix::ws_cobra_subscribe_main(appkey, endpoint, | ||||||
|                                            rolename, rolesecret, |                                            rolename, rolesecret, | ||||||
|                                            channel, verbose); |                                            channel); | ||||||
|     } |     } | ||||||
|     else if (app.got_subcommand("cobra_to_statsd")) |     else if (app.got_subcommand("cobra_to_statsd")) | ||||||
|     { |     { | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								ws/ws.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ws/ws.h
									
									
									
									
									
								
							| @@ -57,8 +57,7 @@ namespace ix | |||||||
|                                 const std::string& endpoint, |                                 const std::string& endpoint, | ||||||
|                                 const std::string& rolename, |                                 const std::string& rolename, | ||||||
|                                 const std::string& rolesecret, |                                 const std::string& rolesecret, | ||||||
|                                 const std::string& channel, |                                 const std::string& channel); | ||||||
|                                 bool verbose); |  | ||||||
|  |  | ||||||
|     int ws_cobra_to_statsd_main(const std::string& appkey, |     int ws_cobra_to_statsd_main(const std::string& appkey, | ||||||
|                                 const std::string& endpoint, |                                 const std::string& endpoint, | ||||||
|   | |||||||
| @@ -17,8 +17,7 @@ namespace ix | |||||||
|                                 const std::string& endpoint, |                                 const std::string& endpoint, | ||||||
|                                 const std::string& rolename, |                                 const std::string& rolename, | ||||||
|                                 const std::string& rolesecret, |                                 const std::string& rolesecret, | ||||||
|                                 const std::string& channel, |                                 const std::string& channel) | ||||||
|                                 bool verbose) |  | ||||||
|     { |     { | ||||||
|  |  | ||||||
|         ix::CobraConnection conn; |         ix::CobraConnection conn; | ||||||
| @@ -51,7 +50,6 @@ namespace ix | |||||||
|                     conn.subscribe(channel, |                     conn.subscribe(channel, | ||||||
|                                    [&jsonWriter](const Json::Value& msg) |                                    [&jsonWriter](const Json::Value& msg) | ||||||
|                                    { |                                    { | ||||||
|                                        // std::cout << "Received message" << std::endl; |  | ||||||
|                                        std::cout << jsonWriter.write(msg) << std::endl; |                                        std::cout << jsonWriter.write(msg) << std::endl; | ||||||
|                                    }); |                                    }); | ||||||
|                 } |                 } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user