500-error geen overbodige sourcecode logging bij timeout
svn path=/Website/trunk/; revision=35448
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user