Handle a log message from the OpenID library.
This implementation writes the string it to sys.stderr ,
followed by a newline.
Currently, the library does not use the second parameter to this
function, but that may change in the future.
To install your own logging hook:
from openid import oidutil
def myLoggingFunction(message, level):
...
oidutil.log = myLoggingFunction
- Parameters:
message (str) - A string containing a debugging message from the OpenID library
level (int or None) - The severity of the log message. This parameter is currently
unused, but in the future, the library may indicate more
important information with a higher level value.
- Returns:
- Nothing.
|