summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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