From: Jonathan E. <jon...@ca...> - 2008-04-17 23:44:49
|
You'd need to patch spyce to use the logger module instead. I think this is done in the svn trunk; you might be able to grab a patch from svn and apply locally. But 2.0.3 is old enough that probably not. -Jonathan On Fri, 18 Apr 2008 00:14:18 +0800, "Andy Sy" <an...@ne...> said: > I've got fastcgi Spyce on lighttpd working with one small > problem. > > > > First of all, below is how lighttpd is started from rc.lighttpd: > > MODULES=/usr/local/lib/ > CONFIG=/etc/lighttpd.conf > > su -c "/usr/local/sbin/lighttpd -f $CONFIG -m $MODULES" www > > > > Everything works, *except* when I exit the shell from where I > started lighttpd. What happens then is that when I request > a page from lighttpd, the browser displays the ff: > > > Unexpected exception: (please report!) > Traceback (most recent call last): > File "/root/spyce-2.0.3/spyce.py", line 284, in commonHandler > DEBUG('elapsed to get spycecode: %s' % (time.time() - start)) > File "/root/spyce-2.0.3/spyce.py", line 10, in DEBUG > sys.stderr.write('%s\n' % s) > IOError: [Errno 5] Input/output error > > > I believe this has to do with the fact that because the shell > is no longer around, spyce.py has nowhere to show its output. > How do we ask spyce to output to a log instead? > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Spyce-users mailing list > Spy...@li... > https://lists.sourceforge.net/lists/listinfo/spyce-users |