← Back to team overview

dolfin team mailing list archive

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

 

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?

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.

Johan

-- 
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")



Follow ups

References