AiAi tonen van last_sql zoals ik het bedoeld had
svn path=/Website/branches/v2016.3/; revision=32793
This commit is contained in:
@@ -241,8 +241,6 @@ switch (objASPError.ASPCode)
|
||||
|
||||
Response.Write("</div></body></html>");
|
||||
|
||||
LogErrorToFile();
|
||||
|
||||
if (Application("otap_environment") == "O" || Session("logging") > 0)
|
||||
{
|
||||
Response.Write("\n<p>De rest is niet zichtbaar voor klanten.<br>");
|
||||
@@ -306,6 +304,7 @@ if (Application("otap_environment") == "O" || Session("logging") > 0)
|
||||
|
||||
Response.Write("\n<br>" + ShowSourcecode(-8, +4));
|
||||
}
|
||||
LogErrorToFile(); // verwijderd ook last_sql
|
||||
|
||||
Response.End;
|
||||
|
||||
@@ -337,7 +336,6 @@ function ASPErrorText(extra)
|
||||
if (Session("last_sql")) // vanuit m_connections.inc
|
||||
{
|
||||
err += "\n<tr><td style='vertical-align:top'>Last SQL:</td><td style='max-width: 800px;'>" + Server.HTMLEncode(Session("last_sql")) + "</td></tr>";
|
||||
Session.Contents.Remove("last_sql"); // Direct weg, anders wordt hij bij Sessions ook nog getoond
|
||||
}
|
||||
|
||||
err += "</table>";
|
||||
@@ -362,6 +360,7 @@ function LogErrorToFile()
|
||||
{
|
||||
__SafeDoLog("Session('customerId'): " + Session("customerId") + " <span style='font-size:9px;color:#444'>" + Request.ServerVariables("REMOTE_ADDR") + "</span>", "#f00");
|
||||
__SafeDoLog(ASPErrorText());
|
||||
Session.Contents.Remove("last_sql"); // Nu weg, anders wordt hij bij Sessions ook nog getoond
|
||||
if (Request.ServerVariables("HTTP_REFERER").Count)
|
||||
__DoLog("Referer: " + Request.ServerVariables("HTTP_REFERER"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user