access logging bug fix
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2965 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
bf453ace5a
commit
20a9787d27
1 changed files with 6 additions and 6 deletions
|
@ -72,13 +72,13 @@ def logAccess(event):
|
||||||
data = event.request.annotations.get(request_key)
|
data = event.request.annotations.get(request_key)
|
||||||
if not data:
|
if not data:
|
||||||
return
|
return
|
||||||
logger = loggers.get(loggers_key)
|
options = IOptions(context.getLoopsRoot())
|
||||||
|
logfileOption = options(logfile_option)
|
||||||
|
if not logfileOption:
|
||||||
|
return
|
||||||
|
fn = logfileOption[0]
|
||||||
|
logger = loggers.get(fn)
|
||||||
if not logger:
|
if not logger:
|
||||||
options = IOptions(context.getLoopsRoot())
|
|
||||||
logfile = options(logfile_option)
|
|
||||||
if not logfile:
|
|
||||||
return
|
|
||||||
fn = logfile[0]
|
|
||||||
path = os.path.join(util.getVarDirectory(), fn)
|
path = os.path.join(util.getVarDirectory(), fn)
|
||||||
logger = loggers[fn] = Logger(fn, path)
|
logger = loggers[fn] = Logger(fn, path)
|
||||||
logger.log(marshall(data))
|
logger.log(marshall(data))
|
||||||
|
|
Loading…
Add table
Reference in a new issue