You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2003/07/03 16:13:36 UTC

cvs commit: httpd-python/src requestobject.c

grisha      2003/07/03 07:13:36

  Modified:    Doc      modpython4.tex
               src      requestobject.c
  Log:
  Added documentation for req.log_error which somehow went undocumented all
  this time.
  
  Revision  Changes    Path
  1.36      +24 -4     httpd-python/Doc/modpython4.tex
  
  Index: modpython4.tex
  ===================================================================
  RCS file: /home/cvs/httpd-python/Doc/modpython4.tex,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- modpython4.tex	1 Jul 2003 20:30:20 -0000	1.35
  +++ modpython4.tex	3 Jul 2003 14:13:36 -0000	1.36
  @@ -306,10 +306,9 @@
   \subsection{Functions\label{pyapi-apmeth}}
   
   \begin{funcdesc}{log_error}{message\optional{, level, server}}
  -  An interface to the Apache
  -  \citetitle[http://dev.apache.org/apidoc/apidoc_ap_log_error.html]{ap_log_error()}
  -  function. \var{message} is a string with the error message, \var{level} is
  -  one of the following flags constants:
  +  An interface to the Apache \code{ap_log_error()}
  +  function. \var{message} is a string with the error message,
  +  \var{level} is one of the following flags constants:
   
     \begin{verbatim}
       APLOG_EMERG
  @@ -570,6 +569,27 @@
     redirect, \code{req.prev} will contain a reference to a request
     object from which it was redirected.
   
  +\end{methoddesc}
  +
  +\begin{methoddesc}{log_error}{message\optional{, level}}
  +  An interface to the Apache \code{ap_log_rerror}
  +  function. \var{message} is a string with the error message,
  +  \var{level} is one of the following flags constants:
  +
  +  \begin{verbatim}
  +    APLOG_EMERG
  +    APLOG_ALERT
  +    APLOG_CRIT
  +    APLOG_ERR
  +    APLOG_WARNING
  +    APLOG_NOTICE
  +    APLOG_INFO
  +    APLOG_DEBUG
  +    APLOG_NOERRNO
  +  \end{verbatim}            
  +
  +  If you need to write to log and do not have a reference to a request object,
  +  use the \function{apache.log_error} function.
   \end{methoddesc}
   
   \begin{methoddesc}[request]{read}{\optional{len}}
  
  
  
  1.48      +2 -2      httpd-python/src/requestobject.c
  
  Index: requestobject.c
  ===================================================================
  RCS file: /home/cvs/httpd-python/src/requestobject.c,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- requestobject.c	30 May 2003 17:05:16 -0000	1.47
  +++ requestobject.c	3 Jul 2003 14:13:36 -0000	1.48
  @@ -422,7 +422,7 @@
       int level = 0;
       char *message = NULL;
   
  -    if (! PyArg_ParseTuple(args, "z|iO", &message, &level))
  +    if (! PyArg_ParseTuple(args, "z|i", &message, &level))
           return NULL; /* error */
   
       if (message) {