Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-09-08 09:22:15 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-09-08 09:22:15 +0400
commit22c8e451a75e451b27e47a197704347fecff2474 (patch)
tree5fe7520d3d2e5f2f3bc63ffe2f66d039e54789dc /mcs
parent23527845dedc6807cffd300cee542630c0c77fcc (diff)
2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TraceContext.cs: when IsEnabled has not been set, return the value from the TraceManager. Fixes bug #63469. svn path=/branches/mono-1-0/mcs/; revision=33557
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/System.Web/System.Web/ChangeLog5
-rw-r--r--mcs/class/System.Web/System.Web/TraceContext.cs6
2 files changed, 9 insertions, 2 deletions
diff --git a/mcs/class/System.Web/System.Web/ChangeLog b/mcs/class/System.Web/System.Web/ChangeLog
index d6f58a48b8a..6991c65dbe1 100644
--- a/mcs/class/System.Web/System.Web/ChangeLog
+++ b/mcs/class/System.Web/System.Web/ChangeLog
@@ -8,6 +8,11 @@
* HttpApplication.cs: only add/remove to/from the timeout
manager when we're in a interruptible step.
+2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * TraceContext.cs: when IsEnabled has not been set, return the value
+ from the TraceManager. Fixes bug #63469.
+
2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpRuntime.cs: initialize the response writer when finishing a
diff --git a/mcs/class/System.Web/System.Web/TraceContext.cs b/mcs/class/System.Web/System.Web/TraceContext.cs
index f939add498b..f4ad22af99d 100644
--- a/mcs/class/System.Web/System.Web/TraceContext.cs
+++ b/mcs/class/System.Web/System.Web/TraceContext.cs
@@ -42,7 +42,7 @@ namespace System.Web {
private TraceMode _Mode;
private TraceData data;
private bool data_saved;
- private bool _haveTrace = false;
+ private bool _haveTrace;
public TraceContext(HttpContext Context) {
_Context = Context;
@@ -58,6 +58,8 @@ namespace System.Web {
public bool IsEnabled {
get {
+ if (!_haveTrace)
+ return HttpRuntime.TraceManager.Enabled;
return _Enabled;
}
@@ -104,7 +106,7 @@ namespace System.Web {
}
private void Write(string category, string msg, Exception error, bool Warning) {
- if (!_Enabled)
+ if (!IsEnabled)
return;
if (data == null)
data = new TraceData ();