summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-12-11 17:20:48 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-12-11 17:20:48 -0800
commit73814c0e38e21f0f43e458a3f039ad40cf5683a1 (patch)
tree5e3b7f2a31c0166adbaec60fa9624e60a1574e81 /src
parent5117f686511ba640cd0c0cb22be5f18bd743d072 (diff)
downloadDotNetOpenAuth-73814c0e38e21f0f43e458a3f039ad40cf5683a1.zip
DotNetOpenAuth-73814c0e38e21f0f43e458a3f039ad40cf5683a1.tar.gz
DotNetOpenAuth-73814c0e38e21f0f43e458a3f039ad40cf5683a1.tar.bz2
Logged errors when initializing reporting.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/Reporting.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth/Reporting.cs b/src/DotNetOpenAuth/Reporting.cs
index 3ac6099..1e2d136 100644
--- a/src/DotNetOpenAuth/Reporting.cs
+++ b/src/DotNetOpenAuth/Reporting.cs
@@ -105,9 +105,11 @@ namespace DotNetOpenAuth {
// url rewriting?
////RecordFeatureUse(IsMVC ? "ASP.NET MVC" : "ASP.NET Web Forms");
}
- } catch {
- // This is supposed to be as low-risk as possible, so if it fails, just disable reporting.
+ } catch (Exception e) {
+ // This is supposed to be as low-risk as possible, so if it fails, just disable reporting
+ // and avoid rethrowing.
Enabled = false;
+ Logger.Library.Error("Error while trying to initialize reporting.", e);
}
}
}
@@ -317,7 +319,7 @@ namespace DotNetOpenAuth {
/// The maximum frequency the set can be flushed to disk.
/// </summary>
#if DEBUG
- private static readonly TimeSpan minimumFlushInterval = TimeSpan.FromSeconds(30);
+ private static readonly TimeSpan minimumFlushInterval = TimeSpan.Zero;
#else
private static readonly TimeSpan minimumFlushInterval = TimeSpan.FromMinutes(15);
#endif