'Broken pipe' usually means one end of the connection was terminated
(most often the client) and the other end was still trying to do
something (in this case write/send data). I sometimes see this when
browser clients hit the 'stop' button while a page is loading, or hit
refresh a bunch of times in a row. Not sure if you are running into
instances of that, or something else. If you are performing 'long
operations' and not having them be asynchronous (or having them be
asynchronous but taking too long), could be web clients getting
impatient and trying to refresh/reload.
> Does someone also know how I can log stuff to a file? The app now
> print to the console.
You can always just redirect stdout/stderr to a file. I use
daemontools and multilog for this myself.
Another option would be to add an additional python logging handler
(after parsing options, which adds an initial logging handler, as I
recall), that logs out to a file.
Logging with "/path/to/index.py > tornado.log &" didn't seem to work
for some reason. It just showed the output in the consule and nothing
in the log file.
Best regards,
Frank Smit
2009/11/2 elij <eli...@gmail.com>:
You need stderr too.
/path/to/index.py > tornado.log 2>&1 &