commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/09: runtime: expose set_log_level for bl


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/09: runtime: expose set_log_level for blocks
Date: Sat, 6 Aug 2016 22:28:35 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch next
in repository gnuradio.

commit 26f027fd7e9657d181f26048cf81600a5613636b
Author: Nathan West <address@hidden>
Date:   Mon Apr 25 15:44:17 2016 -0400

    runtime: expose set_log_level for blocks
---
 gnuradio-runtime/include/gnuradio/block.h | 2 ++
 gnuradio-runtime/lib/block.cc             | 6 ++++++
 gnuradio-runtime/swig/block.i             | 2 ++
 3 files changed, 10 insertions(+)

diff --git a/gnuradio-runtime/include/gnuradio/block.h 
b/gnuradio-runtime/include/gnuradio/block.h
index 3e85f22..f7aa294 100644
--- a/gnuradio-runtime/include/gnuradio/block.h
+++ b/gnuradio-runtime/include/gnuradio/block.h
@@ -633,6 +633,8 @@ namespace gr {
      */
     void system_handler(pmt::pmt_t msg);
 
+    void set_log_level(std::string level);
+
        /*!
      * \brief returns true when execution has completed due to a message 
connection
     */
diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc
index e329e06..4a65297 100644
--- a/gnuradio-runtime/lib/block.cc
+++ b/gnuradio-runtime/lib/block.cc
@@ -715,6 +715,12 @@ namespace gr {
   }
 
   void
+  block::set_log_level(std::string level)
+  {
+    logger_set_level(d_logger, level);
+  }
+
+  void
   block::notify_msg_neighbors()
   {
     size_t len = pmt::length(d_message_subscribers);
diff --git a/gnuradio-runtime/swig/block.i b/gnuradio-runtime/swig/block.i
index 945cea7..bc6f725 100644
--- a/gnuradio-runtime/swig/block.i
+++ b/gnuradio-runtime/swig/block.i
@@ -57,6 +57,8 @@ class gr::block : public gr::basic_block
   uint64_t nitems_read(unsigned int which_input);
   uint64_t nitems_written(unsigned int which_output);
 
+  void set_log_level(std::string level);
+
   // Methods to manage the block's max_noutput_items size.
   int max_noutput_items();
   void set_max_noutput_items(int m);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]