Message22058
Logged In: YES
user_id=455201
I understand this is not a bug, it's by design.
It still looks like a bug, though. Please consider the
following code:
import logging
defaultLoglevel = logging.DEBUG
newLoglevel = 'WARNING'
logging.basicConfig (level = defaultLoglevel, format =
'%(message)s')
print logging.getLevelName (logging.getLogger
().getEffectiveLevel ())
print logging.getLogger ().getEffectiveLevel ()
logging.getLogger ().setLevel (newLoglevel.upper ())
print logging.getLevelName (logging.getLogger
().getEffectiveLevel ())
print logging.getLogger ().getEffectiveLevel ()
Output:
DEBUG
10
30
WARNING
So the result basically inverts. Is that really the way it
is supposed to work ?
Or am I misunderstanding something ?
|
|
Date |
User |
Action |
Args |
2007-08-23 14:25:06 | admin | link | issue1008295 messages |
2007-08-23 14:25:06 | admin | create | |
|