summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-runtime/include/gnuradio/thrift_application_base.h8
-rw-r--r--gnuradio-runtime/include/gnuradio/thrift_server_template.h3
-rw-r--r--gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc5
-rw-r--r--gnuradio-runtime/python/gnuradio/ctrlport/monitor.py2
4 files changed, 8 insertions, 10 deletions
diff --git a/gnuradio-runtime/include/gnuradio/thrift_application_base.h b/gnuradio-runtime/include/gnuradio/thrift_application_base.h
index b957c5ef0d..65cd83e717 100644
--- a/gnuradio-runtime/include/gnuradio/thrift_application_base.h
+++ b/gnuradio-runtime/include/gnuradio/thrift_application_base.h
@@ -103,10 +103,8 @@ template<typename TserverBase, typename TserverClass>
thrift_application_base<TserverBase, TserverClass>::thrift_application_base(TserverClass* _this)
{
gr::configure_default_loggers(d_logger, d_debug_logger, "controlport");
- GR_LOG_DEBUG(d_debug_logger, "thrift_application_base: ctor");
-
- //std::cerr << "thrift_application_base: ctor" << std::endl;
d_this = _this;
+ //GR_LOG_DEBUG(d_debug_logger, "thrift_application_base: ctor");
}
template<typename TserverBase, typename TserverClass>
@@ -131,9 +129,9 @@ void thrift_application_base<TserverBase, TserverClass>::kickoff()
::nanosleep(&timer_ts, &rem_ts);
#endif
if(!d_this->application_started())
- std::cout << "@";
+ std::cerr << "@";
if(iter++ > 100) {
- std::cout << "thrift_application_base::kickoff(), timeout waiting to port number might have failed?!" << std::endl;;
+ std::cerr << "thrift_application_base::kickoff(), timeout waiting to port number might have failed?" << std::endl;
break;
}
}
diff --git a/gnuradio-runtime/include/gnuradio/thrift_server_template.h b/gnuradio-runtime/include/gnuradio/thrift_server_template.h
index 16356424d4..35dbe59e92 100644
--- a/gnuradio-runtime/include/gnuradio/thrift_server_template.h
+++ b/gnuradio-runtime/include/gnuradio/thrift_server_template.h
@@ -107,6 +107,9 @@ thrift_server_template<TserverBase, TserverClass, TImplClass, TThriftClass>::thr
gr::prefs::singleton()->add_config_file(thrift_config_file);
}
+ // Collect configuration options from the Thrift config file;
+ // defaults if the config file doesn't exist or list the specific
+ // options.
port = static_cast<unsigned int>(gr::prefs::singleton()->get_long("thrift", "port",
thrift_application_base<TserverBase, TImplClass>::d_default_thrift_port));
nthreads = static_cast<unsigned int>(gr::prefs::singleton()->get_long("thrift", "nthreads",
diff --git a/gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc b/gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc
index 095db2ec9f..874df5b202 100644
--- a/gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc
+++ b/gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc
@@ -96,10 +96,7 @@ void thrift_application_base<TserverBase, TserverClass>::start_thrift()
// main(0, argv);
//}
- //std::cerr << "thrift_application_base: start_thrift" << std::endl;
- GR_LOG_DEBUG(d_debug_logger, "thrift_application_base: start server");
d_thriftserver->serve();
- GR_LOG_DEBUG(d_debug_logger, "thrift_application_base: server started");
}
@@ -125,7 +122,7 @@ bool thrift_application_base<TserverBase, TserverClass>::application_started()
//std::cout << "Thrift endpoint: " << endpoint << " boost hostname: " << boost_hostname << std::endl;
set_endpoint(endpoint);
- GR_LOG_INFO(logger, "Apache Thrift: " + endpoint);
+ GR_LOG_INFO(d_logger, "Apache Thrift: " + endpoint);
d_is_running = true;
result = true;
}
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py b/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py
index 712137fe8a..f651be2449 100644
--- a/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py
+++ b/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py
@@ -48,7 +48,7 @@ class monitor:
print "monitor::endpoints() = %s" % (gr.rpcmanager_get().endpoints())
try:
cmd = map(lambda a: [self.tool,
- re.search("\d+\.\d+\.\d+\.\d+",a).group(0),
+ re.search("-h (\S+|\d+\.\d+\.\d+\.\d+)",a).group(1),
re.search("-p (\d+)",a).group(1)],
gr.rpcmanager_get().endpoints())[0]
print "running: %s"%(str(cmd))