summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Reporting.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-12-17 07:08:01 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-12-17 07:08:01 -0800
commitbe79890a898ee3d5ae8491bd7d07919d9cf2556d (patch)
treeef60e880aca151efa7ffa4f7a8702344688afdd7 /src/DotNetOpenAuth.Core/Reporting.cs
parent84ef4b74365fe78156792cf17bb945a9ace4e03f (diff)
parentf26bd1e1fe7a98fdac5caca4694776cbbc6b67a8 (diff)
downloadDotNetOpenAuth-be79890a898ee3d5ae8491bd7d07919d9cf2556d.zip
DotNetOpenAuth-be79890a898ee3d5ae8491bd7d07919d9cf2556d.tar.gz
DotNetOpenAuth-be79890a898ee3d5ae8491bd7d07919d9cf2556d.tar.bz2
Merge of pull request to avoid crashes when reporting and logging failes. Closes #241
Diffstat (limited to 'src/DotNetOpenAuth.Core/Reporting.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Reporting.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Core/Reporting.cs b/src/DotNetOpenAuth.Core/Reporting.cs
index 951bb7c..d206587 100644
--- a/src/DotNetOpenAuth.Core/Reporting.cs
+++ b/src/DotNetOpenAuth.Core/Reporting.cs
@@ -519,8 +519,12 @@ namespace DotNetOpenAuth {
SendStats();
} catch (Exception ex) {
// Something bad and unexpected happened. Just deactivate to avoid more trouble.
- Logger.Library.Error("Error while trying to submit statistical report.", ex);
broken = true;
+ try {
+ Logger.Library.Error("Error while trying to submit statistical report.", ex);
+ } catch (Exception) {
+ // swallow exceptions to prevent a crash.
+ }
}
});
}