2007-07-23

authkit error message log 가 필요할 때

source: http://www.mail-archive.com/pylons-discuss@googlegroups.com/msg03705.html

in case you may want to get more debug information from AuthKit I
found a way to get log information in the "paster serve" window.
Add these lines to the config/middleware.py right after
app = authkit.authenticate.middleware...

import logging
log_StreamHandler = logging.StreamHandler() # points to stderr
authkit.authenticate.log.addHandler(log_StreamHandler)
authkit.authenticate.log.setLevel(logging.DEBUG)

댓글 없음: