From 874f599fd002850dfed14ed2da075693d26b3a19 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Tue, 26 Sep 2017 13:24:08 +0000 Subject: [PATCH] 500-error geen overbodige sourcecode logging bij timeout svn path=/Website/trunk/; revision=35448 --- APPL/Shared/500_error.asp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/APPL/Shared/500_error.asp b/APPL/Shared/500_error.asp index 1fea9cf8ff..08a4e4a3ca 100644 --- a/APPL/Shared/500_error.asp +++ b/APPL/Shared/500_error.asp @@ -305,7 +305,8 @@ if (Application("otap_environment") == "O" || __Logging > 0) extra += "Url:" + Server.HTMLEncode(method + " " + pad) + ""; Response.Write(ASPErrorText(extra)); - Response.Write("\n
" + ShowSourcecode(-8, +4)); + if (objASPError.Line > 0) + Response.Write("\n
" + ShowSourcecode(-8, +4)); } LogErrorToFile(); // verwijdert ook last_sql @@ -378,7 +379,8 @@ function LogErrorToFile() var duration = Math.round((now.getTime() - start.getTime()) / 100) / 10; __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 {