commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/01: fec: updating FEC encoder/decoder lo


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/01: fec: updating FEC encoder/decoder loggers to use set function instead of add for appenders.
Date: Mon, 30 Jun 2014 13:48:33 +0000 (UTC)

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

trondeau pushed a commit to branch master
in repository gnuradio.

commit c98699ee1492e3899fad68e54537953f7d440b10
Author: Tom Rondeau <address@hidden>
Date:   Mon Jun 30 09:46:36 2014 -0400

    fec: updating FEC encoder/decoder loggers to use set function instead of 
add for appenders.
---
 gr-fec/lib/generic_decoder.cc | 6 +++---
 gr-fec/lib/generic_encoder.cc | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gr-fec/lib/generic_decoder.cc b/gr-fec/lib/generic_decoder.cc
index ed93ec1..aa11aa8 100644
--- a/gr-fec/lib/generic_decoder.cc
+++ b/gr-fec/lib/generic_decoder.cc
@@ -49,13 +49,13 @@ namespace gr {
       GR_LOG_SET_LEVEL(LOG, log_level);
       if(log_file.size() > 0) {
         if(log_file == "stdout") {
-          GR_LOG_ADD_CONSOLE_APPENDER(LOG, "cout","gr::log :%p: %c{1} - %m%n");
+          GR_LOG_SET_CONSOLE_APPENDER(LOG, "cout","gr::log :%p: %c{1} - %m%n");
         }
         else if(log_file == "stderr") {
-          GR_LOG_ADD_CONSOLE_APPENDER(LOG, "cerr","gr::log :%p: %c{1} - %m%n");
+          GR_LOG_SET_CONSOLE_APPENDER(LOG, "cerr","gr::log :%p: %c{1} - %m%n");
         }
         else {
-          GR_LOG_ADD_FILE_APPENDER(LOG, log_file , true,"%r :%p: %c{1} - 
%m%n");
+          GR_LOG_SET_FILE_APPENDER(LOG, log_file , true,"%r :%p: %c{1} - 
%m%n");
         }
       }
       d_logger = LOG;
diff --git a/gr-fec/lib/generic_encoder.cc b/gr-fec/lib/generic_encoder.cc
index 934d193..c5c7f04 100644
--- a/gr-fec/lib/generic_encoder.cc
+++ b/gr-fec/lib/generic_encoder.cc
@@ -49,13 +49,13 @@ namespace gr {
       GR_LOG_SET_LEVEL(LOG, log_level);
       if(log_file.size() > 0) {
         if(log_file == "stdout") {
-          GR_LOG_ADD_CONSOLE_APPENDER(LOG, "cout","gr::log :%p: %c{1} - %m%n");
+          GR_LOG_SET_CONSOLE_APPENDER(LOG, "cout","gr::log :%p: %c{1} - %m%n");
         }
         else if(log_file == "stderr") {
-          GR_LOG_ADD_CONSOLE_APPENDER(LOG, "cerr","gr::log :%p: %c{1} - %m%n");
+          GR_LOG_SET_CONSOLE_APPENDER(LOG, "cerr","gr::log :%p: %c{1} - %m%n");
         }
         else {
-          GR_LOG_ADD_FILE_APPENDER(LOG, log_file , true,"%r :%p: %c{1} - 
%m%n");
+          GR_LOG_SET_FILE_APPENDER(LOG, log_file , true,"%r :%p: %c{1} - 
%m%n");
         }
       }
       d_logger = LOG;



reply via email to

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