diff options
author | Nathan West <nathan.west@okstate.edu> | 2016-04-30 20:22:00 -0400 |
---|---|---|
committer | Nathan West <nathan.west@gnuradio.org> | 2016-08-04 11:37:43 -0400 |
commit | 00dc1778398ef09c61947ce14542fcd7503ed4a2 (patch) | |
tree | 5c6a81bcb9207ef211fa33b15982d4daf2e71f42 /gnuradio-runtime/lib/hier_block2_detail.cc | |
parent | c8ffbf08723f10a2455d3de9e04f8a94bbf70c15 (diff) |
runtime: add interface to get log_level for blocks
Diffstat (limited to 'gnuradio-runtime/lib/hier_block2_detail.cc')
-rw-r--r-- | gnuradio-runtime/lib/hier_block2_detail.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/hier_block2_detail.cc b/gnuradio-runtime/lib/hier_block2_detail.cc index 93fc67de32..e6d867b269 100644 --- a/gnuradio-runtime/lib/hier_block2_detail.cc +++ b/gnuradio-runtime/lib/hier_block2_detail.cc @@ -965,5 +965,13 @@ namespace gr { } } + std::string + hier_block2_detail::log_level() + { + // Assume that log_level was set for all hier_block2 blocks + basic_block_vector_t tmp = d_fg->calc_used_blocks(); + return tmp[0]->log_level(); + } + } /* namespace gr */ |