# HG changeset patch # User Matthew Wild # Date 1297637837 0 # Node ID eccd3c87d717139dbbfdb166c9041621c4438cbe # Parent 19f2830fbe0249708db39a1867e5b69c5720f339 net.httpserver: Log when an error occurs inside a HTTP request handler diff -r 19f2830fbe02 -r eccd3c87d717 net/httpserver.lua --- a/net/httpserver.lua Thu Feb 03 13:13:49 2011 +0500 +++ b/net/httpserver.lua Sun Feb 13 22:57:17 2011 +0000 @@ -122,6 +122,7 @@ call_callback(request); end local function error_cb(r) + log("error", "Error in HTTP server handler: %s", r or "connection-closed"); call_callback(request, r or "connection-closed"); destroy_request(request); end