summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Reporting.cs
diff options
context:
space:
mode:
authorDavid Christiansen <coding@davedoes.net>2015-01-04 23:33:54 +0000
committerDavid Christiansen <coding@davedoes.net>2015-01-04 23:33:54 +0000
commit5f8a168cc7a17fbc24442be4ae6b518d95a12647 (patch)
tree9f0efbcd13ff54446a34bd229dfd495eed882b06 /src/DotNetOpenAuth.Core/Reporting.cs
parent7574924b2b5c810b7c00328f04f506f28da3f2ec (diff)
downloadDotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.zip
DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.tar.gz
DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.tar.bz2
Closes #356, Closes #357, Closes #358
Diffstat (limited to 'src/DotNetOpenAuth.Core/Reporting.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Reporting.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Core/Reporting.cs b/src/DotNetOpenAuth.Core/Reporting.cs
index 432a833..4d21c38 100644
--- a/src/DotNetOpenAuth.Core/Reporting.cs
+++ b/src/DotNetOpenAuth.Core/Reporting.cs
@@ -23,6 +23,7 @@ namespace DotNetOpenAuth {
using System.Threading.Tasks;
using System.Web;
using DotNetOpenAuth.Configuration;
+ using DotNetOpenAuth.Logging;
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.Messaging.Bindings;
using Validation;
@@ -361,7 +362,7 @@ namespace DotNetOpenAuth {
// This is supposed to be as low-risk as possible, so if it fails, just disable reporting
// and avoid rethrowing.
broken = true;
- Logger.Library.Error("Error while trying to initialize reporting.", e);
+ Logger.Library.ErrorException("Error while trying to initialize reporting.", e);
}
}
}
@@ -474,9 +475,9 @@ namespace DotNetOpenAuth {
return true;
} catch (ProtocolException ex) {
- Logger.Library.Error("Unable to submit statistical report due to an HTTP error.", ex);
+ Logger.Library.ErrorException("Unable to submit statistical report due to an HTTP error.", ex);
} catch (FileNotFoundException ex) {
- Logger.Library.Error("Unable to submit statistical report because the report file is missing.", ex);
+ Logger.Library.ErrorException("Unable to submit statistical report because the report file is missing.", ex);
}
return false;