Try not using Python logging module then, just use 'print' and see if still occurs. Ie., replace call:
logger.info(urlsMap.urls) with: import sys print >> sys.stderr, urlsMap.urls If it only displays once then you will know that it has to do with the Python logging module and nothing to do with mod_wsgi. If it still doubles up, then set: LogLevel info in Apache configuration for the virtual host. That will cause mod_wsgi to log messages to Apache error log about when the WSGI script file is being loaded. Those messages would show whether the WSGI script file is somehow genuinely being loaded twice. Graham 2011/2/12 ロリータ コンプレックス <[email protected]>: > Thanks for your patience and answers > 2011-02-12 00:56:47,028 INFO PID 8497 > 2011-02-12 00:56:47,028 INFO PID 8497 > but my log still shows the problem > and my httpd.conf > WSGIPythonOptimize 1 > WSGISocketPrefix /var/run/wsgi > <VirtualHost *:80> > ServerName localhost > ServerAlias 127.0.0.1 > DocumentRoot /var/www/vhosts/newb.in > Alias /media/ /var/www/vhosts/newb.in/media/ > Alias /robots.txt /var/www/vhosts/newb.in/media/robots.txt > Alias /favicon.ico /var/www/vhosts/newb.in/media/favicon.ico > WSGIDaemonProcess default processes=1 threads=1 > WSGIProcessGroup default > > WSGIScriptAlias / /var/www/vhosts/newb.in/wsgi-scripts/ > newb.in.wsgi > <Directory /var/www/vhosts/newb.in/wsgi-scripts> > Order allow,deny > Allow from all > </Directory> > </VirtualHost> > i don't think anything is wrong~ > maybe my framework has something wrong > i will change it > Thanks again > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
