diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-08 16:54:14 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-08 16:54:14 -0700 |
commit | e66d63e39f1dc4dafaf6ac78b36b34ba49fdcad5 (patch) | |
tree | 12a29dd265e6b4bf0a0b0782cc3df78eac06e2b5 /src/DotNetOpenId.Test/UI/WebControlTesting.cs | |
parent | 96cbcaec96d67236244977b0caeb0ff7ec01b749 (diff) | |
download | DotNetOpenAuth-e66d63e39f1dc4dafaf6ac78b36b34ba49fdcad5.zip DotNetOpenAuth-e66d63e39f1dc4dafaf6ac78b36b34ba49fdcad5.tar.gz DotNetOpenAuth-e66d63e39f1dc4dafaf6ac78b36b34ba49fdcad5.tar.bz2 |
Switched test library over to log4net for trace logging.
Diffstat (limited to 'src/DotNetOpenId.Test/UI/WebControlTesting.cs')
-rw-r--r-- | src/DotNetOpenId.Test/UI/WebControlTesting.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenId.Test/UI/WebControlTesting.cs b/src/DotNetOpenId.Test/UI/WebControlTesting.cs index 08afecf..2ec010f 100644 --- a/src/DotNetOpenId.Test/UI/WebControlTesting.cs +++ b/src/DotNetOpenId.Test/UI/WebControlTesting.cs @@ -58,10 +58,10 @@ namespace DotNetOpenId.Test.UI { redirectUrl = new Uri(providerResponse.Headers[HttpResponseHeader.Location]);
}
} catch (WebException ex) {
- Trace.WriteLine(ex);
+ TestSupport.Logger.Error("WebException", ex);
if (ex.Response != null) {
using (StreamReader sr = new StreamReader(ex.Response.GetResponseStream())) {
- Trace.WriteLine(sr.ReadToEnd());
+ TestSupport.Logger.ErrorFormat("Response stream follows: {0}", sr.ReadToEnd());
}
}
throw;
|