500-error geen overbodige sourcecode logging bij timeout

svn path=/Website/trunk/; revision=35448
This commit is contained in:
Jos Groot Lipman
2017-09-26 13:24:08 +00:00
parent 85121e1e09
commit 874f599fd0

View File

@@ -305,7 +305,8 @@ if (Application("otap_environment") == "O" || __Logging > 0)
extra += "<tr><td>Url:</td><td title='" + Server.HTMLEncode(ttl) + "'>" + Server.HTMLEncode(method + " " + pad) + "</td></tr>"; extra += "<tr><td>Url:</td><td title='" + Server.HTMLEncode(ttl) + "'>" + Server.HTMLEncode(method + " " + pad) + "</td></tr>";
Response.Write(ASPErrorText(extra)); Response.Write(ASPErrorText(extra));
Response.Write("\n<br>" + ShowSourcecode(-8, +4)); if (objASPError.Line > 0)
Response.Write("\n<br>" + ShowSourcecode(-8, +4));
} }
LogErrorToFile(); // verwijdert ook last_sql LogErrorToFile(); // verwijdert ook last_sql
@@ -378,7 +379,8 @@ function LogErrorToFile()
var duration = Math.round((now.getTime() - start.getTime()) / 100) / 10; var duration = Math.round((now.getTime() - start.getTime()) / 100) / 10;
__SafeDoLog("Page started at " + toISODateTimeString(start) + " which is " + duration + " seconds ago"); __SafeDoLog("Page started at " + toISODateTimeString(start) + " which is " + duration + " seconds ago");
} }
__SafeDoLog(ShowSourcecode(-8, +4)); if (objASPError.Line > 0)
__SafeDoLog(ShowSourcecode(-8, +4));
if (Request.QueryString.Count>0) // Hele URL is al wel gelogd maar dit is leesbaarder if (Request.QueryString.Count>0) // Hele URL is al wel gelogd maar dit is leesbaarder
{ {