Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting LOGLEVEL leads to crash (<-> #83) #87

Open
Jintram opened this issue Aug 13, 2012 · 1 comment
Open

Setting LOGLEVEL leads to crash (<-> #83) #87

Jintram opened this issue Aug 13, 2012 · 1 comment

Comments

@Jintram
Copy link

Jintram commented Aug 13, 2012

Additional to issue #83, also setting the LOGLEVEL now doesn't work any more.

$ export LOGLEVEL=DEBUG
$ ./simple.py 
Traceback (most recent call last):
  File "./simple.py", line 12, in <module>
    from egfrd import *
  File "/home/jintram/jintram_jul2012_egfrd/egfrd.py", line 31, in <module>
    from gfrdbase import *
  File "/home/jintram/jintram_jul2012_egfrd/gfrdbase.py", line 71, in <module>
    setup_logging()
  File "/home/jintram/jintram_jul2012_egfrd/gfrdbase.py", line 63, in setup_logging
    handler.logger.manager.level = _gfrd.CppLoggerHandler.translateLevelValue(levelvalue)
AttributeError: type object 'CppLoggerHandler' has no attribute 'translateLevelValue'
@Jintram
Copy link
Author

Jintram commented Aug 13, 2012

This issue concerns using Python 2.7, when using Python 2.6 there appear to be no problems.

Also, when compiling using Python 2.7, there don't seem to be any complaints about the logger, we only have a different warning concerning the logger:


$ grep ogger compiler_output.log | grep warning
PythonAppender.cpp:48:75: warning: passing NULL to non-pointer argument 6 of 'typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators<U>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&) const [with A0 = const char*, A1 = Logger::level, A2 = char [1], A3 = int, A4 = const char*, A5 = int, A6 = int, A7 = int, U = boost::python::api::object, typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]' [-Wconversion-null]
PythonAppender.cpp:48:75: warning: passing NULL to non-pointer argument 6 of 'typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators<U>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&) const [with A0 = const char*, A1 = Logger::level, A2 = char [1], A3 = int, A4 = const char*, A5 = int, A6 = int, A7 = int, U = boost::python::api::object, typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]' [-Wconversion-null]
PythonAppender.cpp:48:75: warning: passing NULL to non-pointer argument 7 of 'typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators<U>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&) const [with A0 = const char*, A1 = Logger::level, A2 = char [1], A3 = int, A4 = const char*, A5 = int, A6 = int, A7 = int, U = boost::python::api::object, typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]' [-Wconversion-null]
PythonAppender.cpp:48:75: warning: passing NULL to non-pointer argument 7 of 'typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators<U>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&) const [with A0 = const char*, A1 = Logger::level, A2 = char [1], A3 = int, A4 = const char*, A5 = int, A6 = int, A7 = int, U = boost::python::api::object, typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]' [-Wconversion-null]
PythonAppender.cpp:48:75: warning: passing NULL to non-pointer argument 8 of 'typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators<U>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&) const [with A0 = const char*, A1 = Logger::level, A2 = char [1], A3 = int, A4 = const char*, A5 = int, A6 = int, A7 = int, U = boost::python::api::object, typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]' [-Wconversion-null]
PythonAppender.cpp:48:75: warning: passing NULL to non-pointer argument 8 of 'typename boost::python::detail::dependent<boost::python::api::object, A0>::type boost::python::api::object_operators<U>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&) const [with A0 = const char*, A1 = Logger::level, A2 = char [1], A3 = int, A4 = const char*, A5 = int, A6 = int, A7 = int, U = boost::python::api::object, typename boost::python::detail::dependent<boost::python::api::object, A0>::type = boost::python::api::object]' [-Wconversion-null]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant