I'm having an odd problem with the GR logger - no matter what I do the logger logs messages at all log levels and ignores my formatting configuration. I have another machine with the same configuration that behaves as I expect.
I'm writing an OOT module and testing it using the same code on two different RHEL7 machines. I have the same version of GR and log4cpp on both machines:
$ python -c 'from gnuradio import gr; print gr.version()'3.7.10.1$ sudo yum info 'log4cpp*'Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-manager, versionlockThis system is receiving updates from RHN Classic or Red Hat Satellite.Installed PackagesName : log4cppArch : x86_64Version : 1.1.1Release : 1.el7Size : 394 kRepo : installedFrom repo : epelSummary : C++ logging libraryLicense : LGPLv2+Description : A library of C++ classes for flexible logging to files, syslog, IDSA and: other destinations. It is modeled after the Log for Java library: (http://www.log4j.org), staying as close to their API as is reasonable.Name : log4cpp-develArch : x86_64Version : 1.1.1Release : 1.el7Size : 206 kRepo : installedFrom repo : epelSummary : Header files, libraries and development man pages log4cppLicense : LGPLv2+Description : This package contains the header files, static libraries and development: man pages for log4cpp. If you like to develop programs using log4cpp,: you will need to install log4cpp-devel.
I've used strace to look at all the files my flowgraph opens and the config files it opens are configured the same way on both machines. I also try to change the log level env variable like below without success
Here are two sample messages, the first one is correct and the second is notexport GR_CONF_LOG_LOG_LEVEL=INFO
INFO: sample messageRoot :INFO: top_block - sample message
Why is this happening?
Thanks for any help,
Devin
No comments:
Post a Comment