Resolved: (MODPYTHON-41) Calls to PyErr_Print should be followed by fflush().
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Resolved: (MODPYTHON-41) Calls to PyErr_Print should be followed by fflush().




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Resolved: (MODPYTHON-41) Calls to PyErr_Print should be followed by fflush().  
Nicolas Lehuen (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-30-05 07:45 AM

[ http://issues.apache.org/jira/brows...HON-41?page=all ]

Nicolas Lehuen resolved MODPYTHON-41:
-------------------------------------

Assign To: Nicolas Lehuen
Resolution: Fixed
Fix Version: 3.2.0

> Calls to PyErr_Print should be followed by fflush().
> ----------------------------------------------------
>
>          Key: MODPYTHON-41
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-41
>      Project: mod_python
>         Type: Improvement
>   Components: core
>     Versions: 3.1.4
>     Reporter: Graham Dumpleton
>     Assignee: Nicolas Lehuen
>      Fix For: 3.2.0

>
> In mod_python.c there are a few places where PyErr_Print() is called. The 
output of this
> function is sent to stderr and not to the Apache log functions. The output
 does make its
> way into the Apache error log file eventually, but not straight away due t
o buffering
> issues. In order to ensure the output gets the logs straight away, a call 
should be made
> to fflush(stderr) after calling PyErr_Print(). Ie.,
>         PyErr_Print();
>         fflush(stderr);
> This will ensure that relevant lower level Python errors appear adjacent t
o any error message
> logged by mod_python to the error log file.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:17 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register