← Back to team overview

dolfin team mailing list archive

Re: [Bug 736677] [NEW] log_level partly broken in Python

 

On Thu, Mar 17, 2011 at 04:08:31PM -0000, Johan Hake wrote:
> On Thursday March 17 2011 01:06:17 Anders Logg wrote:
> > Public bug reported:
> >
> > info with log_level is broken in Python. The following should print
> > "test" but prints nothing:
> >
> > from dolfin import *
> > set_log_level(30)
> > info(30, "test")
>
> Does it work in C++ or do you think it is a SWIG thing?

Yes, works from C++.

> Also I find it a bit weird that info could be called with a log level, as info
> itself has log level 20.
>
> In the Python logging module one use log(level, message) for level dependent
> printing.

Yes, that's a better solution. I'll make the change on the C++ side
and then we'll see if the Python wrappers kick in correctly.

--
Anders

-- 
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/736677

Title:
  log_level partly broken in Python

Status in DOLFIN:
  Confirmed

Bug description:
  info with log_level is broken in Python. The following should print
  "test" but prints nothing:

  from dolfin import *
  set_log_level(30)
  info(30, "test")



References