[imp] Add level names for debug2 and debug_rpc in logging
bzr revid: xmo@tinyerp.com-20100302093610-f1pzzx1ck7e2i6jl
This commit is contained in:
parent
ea5cf5989f
commit
0c67a510d7
|
@ -138,7 +138,9 @@ LOG_CRITICAL = 'critical'
|
||||||
|
|
||||||
# add new log level below DEBUG
|
# add new log level below DEBUG
|
||||||
logging.DEBUG2 = logging.DEBUG - 1
|
logging.DEBUG2 = logging.DEBUG - 1
|
||||||
|
logging.addLevelName(logging.DEBUG2, 'DEBUG2')
|
||||||
logging.DEBUG_RPC = logging.DEBUG2 - 1
|
logging.DEBUG_RPC = logging.DEBUG2 - 1
|
||||||
|
logging.addLevelName(logging.DEBUG_RPC, 'DEBUG_RPC')
|
||||||
|
|
||||||
def init_logger():
|
def init_logger():
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in New Issue