* lib/ur: Implement crash (panic) reporting (fixes #959) This implements a simple crash reporting method. It piggybacks on the panic log files created by the monitor process, picking these up and uploading them from the usage reporting routine. A new config value points to the crash receiver base URL, which defaults to "https://crash.syncthing.net/newcrash" (following the pattern of "https://data.syncthing.net/newdata" for usage reports, but allowing us to separate the service as required).
This commit is contained in:
@@ -69,3 +69,50 @@
|
||||
</div>
|
||||
</div>
|
||||
</notification>
|
||||
|
||||
<notification id="crAutoEnabled">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><span class="fas fa-bolt"></span> <span translate>Automatic Crash Reporting</span></h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p translate>Syncthing now supports automatically reporting crashes to the developers. This feature is enabled by default.</p>
|
||||
<p><a href="https://docs.syncthing.net/users/crashrep.html"><span class="fas fa-info-circle"></span> <span translate>Learn more</span></a></p>
|
||||
</div>
|
||||
<div class="panel-footer clearfix">
|
||||
<div class="pull-right">
|
||||
<button type="button" class="btn btn-danger" ng-click="setCrashReportingEnabled(false); dismissNotification('crAutoEnabled')">
|
||||
<span class="fas fa-times"></span> <span translate>Disable Crash Reporting</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-default" ng-click="dismissNotification('crAutoEnabled')">
|
||||
<span class="fas fa-check"></span> <span translate>OK</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</notification>
|
||||
|
||||
<notification id="crAutoDisabled">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><span class="fas fa-bolt"></span> <span translate>Automatic Crash Reporting</span></h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p translate>Syncthing now supports automatically reporting crashes to the developers. This feature is enabled by default.</p>
|
||||
<p translate>However, your current settings indicate you might not want it enabled. We have disabled automatic crash reporting for you.</p>
|
||||
<p><a href="https://docs.syncthing.net/users/crashrep.html"><span class="fas fa-info-circle"></span> <span translate>Learn more</span></a></p>
|
||||
</div>
|
||||
<div class="panel-footer clearfix">
|
||||
<div class="pull-right">
|
||||
<button type="button" class="btn btn-success" ng-click="setCrashReportingEnabled(true); dismissNotification('crAutoDisabled')">
|
||||
<span class="fas fa-check"></span> <span translate>Enable Crash Reporting</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-default" ng-click="dismissNotification('crAutoDisabled')">
|
||||
<span class="fas fa-times"></span> <span translate>OK</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</notification>
|
||||
|
||||
Reference in New Issue
Block a user