"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/python/pyfimex0_logging.cc" between
fimex-1.6.6.tar.gz and fimex-1.6.7.tar.gz

About: Fimex is a the File Interpolation, Manipulation and EXtraction library for gridded geospatial data. It converts between different, extensible dataformats (currently netcdf, NcML, grib1/2 and felt).

pyfimex0_logging.cc  (fimex-1.6.6):pyfimex0_logging.cc  (fimex-1.6.7)
skipping to change at line 113 skipping to change at line 113
{ {
if (!log_.is_none()) if (!log_.is_none())
PY_GIL_IGNORE_EXCEPTIONS(log_ = py::none()); PY_GIL_IGNORE_EXCEPTIONS(log_ = py::none());
} }
bool PythonLoggingImpl::isEnabledFor(Logger::LogLevel level) bool PythonLoggingImpl::isEnabledFor(Logger::LogLevel level)
{ {
const int pylevel = toPythonLevel(level); const int pylevel = toPythonLevel(level);
if (!log_.is_none()) if (!log_.is_none())
PY_GIL_EXCEPTIONS(log_.attr("isEnabledFor")(pylevel).cast<bool>()); PY_GIL_EXCEPTIONS(return log_.attr("isEnabledFor")(pylevel).cast<bool>() );
return false; return false;
} }
void PythonLoggingImpl::log(Logger::LogLevel level, const std::string& message, const char* filename, unsigned int lineNumber) void PythonLoggingImpl::log(Logger::LogLevel level, const std::string& message, const char* filename, unsigned int lineNumber)
{ {
if (log_.is_none()) if (log_.is_none())
return; return;
std::ostringstream py_message; std::ostringstream py_message;
py_message << message py_message << message
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)