RESOLVED FIXED 31604
WebSocket server should write errors to a log file
https://bugs.webkit.org/show_bug.cgi?id=31604
Summary WebSocket server should write errors to a log file
Mark Rowe (bdash)
Reported 2009-11-17 16:38:27 PST
It’s currently difficult to work out what is going wrong if the WebSocket server fails to start. If it wrote its errors to a log file in a similar fashion to what Apache does it would be easier to debug issues that only happen on inaccessible machines (eg, the build bots).
Attachments
Make pywebsocket log errors to a file (1.45 KB, patch)
2009-11-25 23:32 PST, Yuzo Fujishima
no flags
Make pywebsocket log errors to a file (2.52 KB, patch)
2009-11-29 17:48 PST, Yuzo Fujishima
no flags
Make pywebsocket log errors to a file (2.48 KB, patch)
2009-11-29 18:07 PST, Yuzo Fujishima
ap: review+
ap: commit-queue-
Yuzo Fujishima
Comment 1 2009-11-18 00:23:37 PST
Hi, I've started addressing this upstream: http://code.google.com/p/pywebsocket/issues/detail?id=24 After it is done upstream, I'll upload a WebKit patch to upgrade the pywebsocket copy in WebKitTools to the latest. Yuzo
Yuzo Fujishima
Comment 2 2009-11-25 23:32:35 PST
Created attachment 43898 [details] Make pywebsocket log errors to a file
Yuzo Fujishima
Comment 3 2009-11-25 23:34:22 PST
Hi, reviewers, Can you review this patch? Yuzo
David Levin
Comment 4 2009-11-26 09:50:07 PST
Since this is perl, I'd prefer if someone else looked at it. (btw, Yuzo, it is a holiday in the US for Thursday and Friday so expect slower responses.)
Eric Seidel (no email)
Comment 5 2009-11-29 13:52:02 PST
Comment on attachment 43898 [details] Make pywebsocket log errors to a file Looks OK, but why are we coyping this code from elsewhere? It should be abstracted into a sub routine. I see this in the file already: 1380 my $absTestResultsDirectory = File::Spec->rel2abs(glob $testResultsDirectory); 1381 my $sslCertificate = "$testDirectory/http/conf/webkit-httpd.pem"; 1382 1383 mkpath $absTestResultsDirectory;
Yuzo Fujishima
Comment 6 2009-11-29 17:48:08 PST
Created attachment 43999 [details] Make pywebsocket log errors to a file
Yuzo Fujishima
Comment 7 2009-11-29 17:53:08 PST
Thank you for reviewing this. Refactored by extracting a method. Can you take another look? Yuzo
Yuzo Fujishima
Comment 8 2009-11-29 18:07:14 PST
Created attachment 44002 [details] Make pywebsocket log errors to a file
Adam Barth
Comment 9 2009-11-30 12:48:35 PST
style-queue ran check-webkit-style on attachment 44002 [details] without any errors.
Alexey Proskuryakov
Comment 10 2009-12-01 10:48:29 PST
Comment on attachment 44002 [details] Make pywebsocket log errors to a file r=me I'll try to think of a better name for makeAbsTestResultsDirectory(), and will land manually. The current name is not great for several reasons: - we don't like abbreviations in names; - it's not an "absolute directory" that this method makes; - nothing in the name suggests that there will be a return value.
Alexey Proskuryakov
Comment 11 2009-12-01 10:57:16 PST
Committed <http://trac.webkit.org/changeset/51550>. I also updated ChangeLog to be more useful to readers.
Note You need to log in before you can comment on or make changes to this bug.